1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fittrackee_ynh.git synced 2024-09-03 18:36:16 +02:00

initialize db

This commit is contained in:
Eric Wagoner 2022-12-29 17:06:31 -05:00
parent fcdd419852
commit 04fa60f102

View file

@ -131,6 +131,15 @@ mkdir "$final_path/venv"
python3 -m venv "$final_path/venv" python3 -m venv "$final_path/venv"
$final_path/venv/bin/pip3 install -r "$final_path/requirements.txt" $final_path/venv/bin/pip3 install -r "$final_path/requirements.txt"
#=================================================
# INITIALIZE DATABASE
#=================================================
ynh_script_progression --message="Initializing database..." --weight=1
$final_path/venv/bin/python3 "$final_path/manage.py" migrate
$final_path/venv/bin/python3 "$final_path/manage.py" initdb
$final_path/venv/bin/python3 "$final_path/manage.py" collectstatic --no-input
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================