mirror of
https://github.com/YunoHost-Apps/coin_ynh.git
synced 2024-09-03 18:16:26 +02:00
Merge pull request #42 from YunoHost-Apps/testing
Automated testing -> master
This commit is contained in:
commit
69cc038ec7
4 changed files with 7 additions and 18 deletions
|
@ -68,7 +68,7 @@ ram.runtime = "50M"
|
||||||
main.allowed = "visitors"
|
main.allowed = "visitors"
|
||||||
|
|
||||||
[resources.apt]
|
[resources.apt]
|
||||||
packages = "gunicorn, python3, python3-venv, libpq-dev, libsasl2-dev, libjpeg-dev, libxml2-dev, libxslt1-dev, libpango1.0-0, postgresql, postgresql-contrib, postgresql-server-dev-all python3-dev"
|
packages = "gunicorn, python3, python3-venv, libpq-dev, libsasl2-dev, libjpeg-dev, libxml2-dev, libxslt1-dev, libpango1.0-0, postgresql, postgresql-contrib, postgresql-server-dev-13"
|
||||||
|
|
||||||
[resources.database]
|
[resources.database]
|
||||||
type = "postgresql"
|
type = "postgresql"
|
||||||
|
|
|
@ -9,7 +9,7 @@ ynh_app_setting_set --app=$app --key=secret --value=$secret
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setting up source files..."
|
ynh_script_progression --message="Setting up source files..."
|
||||||
|
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ chown -R $app:www-data "$install_dir"
|
||||||
#=================================================
|
#=================================================
|
||||||
# PYTHON DEPENDENCIES
|
# PYTHON DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing more dependencies..."
|
ynh_script_progression --message="Installing more dependencies..."
|
||||||
|
|
||||||
pushd "$install_dir"
|
pushd "$install_dir"
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
|
@ -35,7 +35,7 @@ popd
|
||||||
#=================================================
|
#=================================================
|
||||||
# CONFIGURATION DJANGO
|
# CONFIGURATION DJANGO
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring application..."
|
ynh_script_progression --message="Configuring application..."
|
||||||
|
|
||||||
export prefix="${path#"/"}/"
|
export prefix="${path#"/"}/"
|
||||||
prefix=${prefix%"/"}
|
prefix=${prefix%"/"}
|
||||||
|
@ -65,7 +65,7 @@ chown -R $app:www-data "/var/log/$app"
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADD A CONFIGURATION
|
# ADD A CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..."
|
ynh_script_progression --message="Adding a configuration file..."
|
||||||
|
|
||||||
ynh_add_config --template="gunicorn_config.py" --destination="$install_dir/gunicorn_config.py"
|
ynh_add_config --template="gunicorn_config.py" --destination="$install_dir/gunicorn_config.py"
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ yunohost service add $app --description "$app daemon" --log="/var/log/$app/$app.
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Starting systemd service..."
|
ynh_script_progression --message="Starting systemd service..."
|
||||||
|
|
||||||
# Start a systemd service
|
# Start a systemd service
|
||||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
||||||
|
|
|
@ -23,7 +23,7 @@ then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=coin/settings_local.py
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
diff --git a/requirements.txt b/requirements.txt
|
|
||||||
index 27c1a5c..a21fd3d 100644
|
|
||||||
--- a/requirements.txt
|
|
||||||
+++ b/requirements.txt
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
Django>=2.2,<2.3
|
|
||||||
-psycopg2>=2.8,<2.9
|
|
||||||
+psycopg2>=2.9,<3.0
|
|
||||||
# To match django-ldapdb version:
|
|
||||||
#python-ldap>=3.0,<3.1
|
|
||||||
#wsgiref
|
|
Loading…
Reference in a new issue