1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fittrackee_ynh.git synced 2024-09-03 18:36:16 +02:00
This commit is contained in:
Éric Gaspar 2023-01-18 09:27:54 +01:00
parent 6400b9a3e5
commit 3422afb7da
4 changed files with 13 additions and 8 deletions

View file

@ -1,7 +1,7 @@
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY="__KEY__"
# SECURITY WARNING: don 't run with debug turned on in production!
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG=false
USE_HTTPS=true

View file

@ -40,7 +40,6 @@ key=$(ynh_string_random --length=32)
#=================================================
ynh_script_progression --message="Validating installation parameters..." --weight=1
final_path=/var/www/$app
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"

View file

@ -99,6 +99,12 @@ mkdir "$final_path/venv"
python3 -m venv "$final_path/venv"
$final_path/venv/bin/pip3 install -r "$final_path/requirements.txt"
#=================================================
# SET PERMISSIONS ON BOOKWYRM DIRECTORY
#=================================================
chown -R $app:www-data $final_path
#=================================================
# NGINX CONFIGURATION
#=================================================