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:
parent
fcdd419852
commit
04fa60f102
1 changed files with 9 additions and 0 deletions
|
@ -131,6 +131,15 @@ mkdir "$final_path/venv"
|
|||
python3 -m venv "$final_path/venv"
|
||||
$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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue