mirror of
https://github.com/YunoHost-Apps/coin_ynh.git
synced 2024-09-03 18:16:26 +02:00
Zgrlbml
This commit is contained in:
parent
428c5293ee
commit
ce85a23a39
3 changed files with 5 additions and 4 deletions
|
@ -69,6 +69,5 @@ ram.runtime = "50M"
|
||||||
[resources.apt]
|
[resources.apt]
|
||||||
packages = "gunicorn, python3, python3-venv, libldap2-dev, libpq-dev, libsasl2-dev, libjpeg-dev, libxml2-dev, libxslt1-dev, libffi-dev, libpango1.0-0, postgresql, postgresql-contrib, postgresql-server-dev-13"
|
packages = "gunicorn, python3, python3-venv, libldap2-dev, libpq-dev, libsasl2-dev, libjpeg-dev, libxml2-dev, libxslt1-dev, libffi-dev, libpango1.0-0, postgresql, postgresql-contrib, postgresql-server-dev-13"
|
||||||
|
|
||||||
|
|
||||||
[resources.database]
|
[resources.database]
|
||||||
type = "postgresql"
|
type = "postgresql"
|
||||||
|
|
|
@ -40,13 +40,12 @@ export prefix="${path#"/"}/"
|
||||||
prefix=${prefix%"/"}
|
prefix=${prefix%"/"}
|
||||||
ynh_render_template ../conf/local.py.j2 "$install_dir/coin/settings_local.py"
|
ynh_render_template ../conf/local.py.j2 "$install_dir/coin/settings_local.py"
|
||||||
ynh_store_file_checksum --file="$install_dir/coin/settings_local.py"
|
ynh_store_file_checksum --file="$install_dir/coin/settings_local.py"
|
||||||
|
chmod 400 "$install_dir/coin/settings_local.py"
|
||||||
|
chown $app "$install_dir/coin/settings_local.py"
|
||||||
|
|
||||||
# SERVE STATIC FILES IN PRODUCTION MODE
|
# SERVE STATIC FILES IN PRODUCTION MODE
|
||||||
ln -s $install_dir/$app/static $install_dir/static
|
ln -s $install_dir/$app/static $install_dir/static
|
||||||
|
|
||||||
ls -l $install_dir
|
|
||||||
ls -l $install_dir/coin
|
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
ynh_exec_warn_less venv/bin/python3 manage.py migrate --noinput
|
ynh_exec_warn_less venv/bin/python3 manage.py migrate --noinput
|
||||||
ynh_exec_warn_less venv/bin/python3 manage.py collectstatic --noinput
|
ynh_exec_warn_less venv/bin/python3 manage.py collectstatic --noinput
|
||||||
|
|
|
@ -53,6 +53,9 @@ ynh_backup_if_checksum_is_different --file="$install_dir/coin/settings_local.py"
|
||||||
ynh_render_template ../conf/local.py.j2 "$install_dir/coin/settings_local.py"
|
ynh_render_template ../conf/local.py.j2 "$install_dir/coin/settings_local.py"
|
||||||
ynh_store_file_checksum --file="$install_dir/coin/settings_local.py"
|
ynh_store_file_checksum --file="$install_dir/coin/settings_local.py"
|
||||||
|
|
||||||
|
chmod 400 "$install_dir/coin/settings_local.py"
|
||||||
|
chown $app "$install_dir/coin/settings_local.py"
|
||||||
|
|
||||||
ynh_add_config --template="../conf/gunicorn_config.py" --destination="$install_dir/gunicorn_config.py"
|
ynh_add_config --template="../conf/gunicorn_config.py" --destination="$install_dir/gunicorn_config.py"
|
||||||
chown $app:www-data "$install_dir/gunicorn_config.py"
|
chown $app:www-data "$install_dir/gunicorn_config.py"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue