mirror of
https://github.com/YunoHost-Apps/django_example_ynh.git
synced 2024-09-03 18:26:21 +02:00
install the app via pip
Note: The generated "requirements.txt" doesn't contain the own package!
This commit is contained in:
parent
05be4ad6b4
commit
577017d366
3 changed files with 4 additions and 2 deletions
|
@ -27,8 +27,8 @@ log_file="${log_path}/django_ynh.log"
|
|||
# dependencies used by the app
|
||||
pkg_dependencies="build-essential python3-dev python3-pip python3-venv git postgresql postgresql-contrib"
|
||||
|
||||
# django_ynh's version for PIP and settings file
|
||||
django_ynh_version="0.8.2"
|
||||
# To install/upgrade this project via pip:
|
||||
pip_install_string="django_ynh==0.1.0"
|
||||
|
||||
#=================================================
|
||||
# Redis HELPERS
|
||||
|
|
|
@ -114,6 +114,7 @@ chown -R "$app" "$final_path"
|
|||
set -o nounset
|
||||
ynh_exec_as $app $final_path/venv/bin/pip install --upgrade pip
|
||||
ynh_exec_as $app $final_path/venv/bin/pip install -r "$final_path/requirements.txt"
|
||||
ynh_exec_as $app $final_path/venv/bin/pip install --upgrade "$pip_install_string"
|
||||
)
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -98,6 +98,7 @@ chown -R "$app" "$final_path"
|
|||
set -o nounset
|
||||
ynh_exec_as $app $final_path/venv/bin/pip install --upgrade pip
|
||||
ynh_exec_as $app $final_path/venv/bin/pip install -r "$final_path/requirements.txt"
|
||||
ynh_exec_as $app $final_path/venv/bin/pip install --upgrade "$pip_install_string"
|
||||
)
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue