Comments (5)
I don't really know how other Yunohost package manage that (ping @YunoHost-Apps/apps-group) appart from making a backup and letting you manually transfer the changes if you want to (I do that for Pixelfed, it's painful, but at least my changes are not lost).
from codimd_ynh.
As a workaround to this issue, you may create a empty file with env variables (maybe with just a comment to explain how to fill it) and source it when running codimd. So the user can only tweak the file with env variable and the app maintainer may tweak the config.json
file at his/her convenience.
If I quote this page:
Environment variables take precedence over configurations from the config files. They generally start with CMD_ for our own options, but we also list node-specific options you can configure this way.
from codimd_ynh.
@fflorent This upgraded version of CodiMD allows installation in a sub-folder, therefore the config.json file has a new $path
argument hence the choice to overwrite the previous config.json file. Not ideal I guess...
from codimd_ynh.
Describe the bug
When updating the application,
/var/www/codimd/config.json
is overwritten, despite the README file which invites to tweak it.
Yes it's a normal behavior, it's why during upgrade, there is :
Line 140 in 58e85a9
ynh_backup_if_checksum_is_different
keep a copy of the the config file to let you tweak again :)
from codimd_ynh.
Useful link for sourcing an environment file in a systemd service:
from codimd_ynh.
Related Issues (20)
- Non-root domain installation
- Fail2ban support ?
- Webpack build fails at 84% HOT 4
- Add YunoHost package installation in codimd setup doc HOT 4
- On upgrade: Unhandled rejection SequelizeConnectionError: password authentication failed for user "codimd" HOT 2
- Install fails because nginx refuses proxy_max_temp_file_size value HOT 2
- Installation fails : Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory HOT 1
- Future of codimd_ynh : hedgedoc vs. hackmd-open-source-edition ? HOT 6
- Change the tooBusyLag value by default HOT 5
- cp: cannot stat '../conf/.sequelizerc.default': No such file or directory
- Installation fails due to corrupt source (sha256sum) HOT 7
- Can't install on raspberry pi
- Transitionning from CodiMD to HedgeDoc. HOT 5
- update is failing (file or dir not found) HOT 1
- App does not backup uploaded files :sweat: HOT 2
- WARN: "Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`" HOT 6
- Install fails on Bullseye because of a super weird python2 syntax ? wut ? HOT 1
- Install fails on raspberry pi 4 due to invalid nginx config parameter HOT 4
- Install failure on arm64 due to PhantomJS dependency HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codimd_ynh.