mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
various fixes
This commit is contained in:
parent
c62b706a39
commit
b7d543c294
3 changed files with 5 additions and 2 deletions
|
@ -17,7 +17,7 @@ export DATABASE_URL=postgresql://__DB_USER__:__DB_PWD__@:5432/__DB_NAME__
|
||||||
# export DATABASE_DISABLE_POOLING=
|
# export DATABASE_DISABLE_POOLING=
|
||||||
|
|
||||||
# Redis (required for API rate limits and email sending)
|
# Redis (required for API rate limits and email sending)
|
||||||
# export REDIS_URL=
|
export REDIS_URL=redis://
|
||||||
|
|
||||||
# API rate limits
|
# API rate limits
|
||||||
# export API_RATE_LIMITS="300 per 5 minutes"
|
# export API_RATE_LIMITS="300 per 5 minutes"
|
||||||
|
|
|
@ -29,7 +29,7 @@ Environment="MAP_ATTRIBUTION="
|
||||||
Environment="WEATHER_API_KEY="
|
Environment="WEATHER_API_KEY="
|
||||||
WorkingDirectory=__INSTALL_DIR__/
|
WorkingDirectory=__INSTALL_DIR__/
|
||||||
EnvironmentFile=__INSTALL_DIR__/.env
|
EnvironmentFile=__INSTALL_DIR__/.env
|
||||||
ExecStart=__INSTALL_DIR__/.venv/bin/gunicorn -b 127.0.0.1:__PORT__ "fittrackee:create_app()" --error-logfile /var/log/$app/$app.log
|
ExecStart=__INSTALL_DIR__/.venv/bin/gunicorn -b 127.0.0.1:__PORT__ "fittrackee:create_app()" --error-logfile /var/log/__APP__/__APP__.log
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -36,6 +36,9 @@ ynh_script_progression --message="Setting up source files..." --weight=64
|
||||||
|
|
||||||
|
|
||||||
mkdir -p "$install_dir"
|
mkdir -p "$install_dir"
|
||||||
|
# Set permissions to app files
|
||||||
|
chmod -R o-rwx "$install_dir"
|
||||||
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
mkdir -p .venv
|
mkdir -p .venv
|
||||||
|
|
Loading…
Reference in a new issue