Change "manage.py" shebang and use always the right venv python

This commit is contained in:
JensDiemer 2022-04-02 20:11:23 +02:00
parent a5f8765007
commit 2e937f4a24
2 changed files with 3 additions and 1 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!__FINAL_HOME_PATH__/venv/bin/python
import os
import sys

View file

@ -135,6 +135,8 @@ ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_f
ynh_store_file_checksum --file="$gunicorn_conf"
cp ../conf/manage.py "$final_path/manage.py"
ynh_replace_string --match_string="__FINAL_HOME_PATH__" --replace_string="$final_path" --target_file="$final_path/manage.py"
ynh_store_file_checksum --file="$final_path/manage.py"
chmod +x "$final_path/manage.py"
settings="$final_path/settings.py"