1
0
Fork 0
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:
Thomas 2023-02-28 21:39:00 +01:00 committed by GitHub
parent c62b706a39
commit b7d543c294
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View file

@ -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"

View file

@ -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]

View file

@ -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