diff --git a/conf/local.py.j2 b/conf/local.py.j2 index 477fd56..651d83c 100644 --- a/conf/local.py.j2 +++ b/conf/local.py.j2 @@ -7,7 +7,8 @@ DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['{{ domain }}'] -URL_PREFIX = '{{ prefix }}' +# Prefix is hard coded for now as the app can only be installed on whole domain +URL_PREFIX = '' STATIC_ROOT = '{{ install_dir }}/static' NOTIFICATION_EMAILS = ['{{ email }}'] DEFAULT_FROM_EMAIL = 'notifier@{{ domain }}' diff --git a/scripts/change_url b/scripts/change_url index 5da12ad..f990470 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -7,8 +7,6 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app ynh_change_url_nginx_config -prefix="${path#"/"}/" -prefix=${prefix%"/"} ynh_add_config --jinja --template=local.py.j2 --destination="$install_dir/coin/settings_local.py" chmod 400 "$install_dir/coin/settings_local.py" diff --git a/scripts/install b/scripts/install index 438438d..3133d5b 100644 --- a/scripts/install +++ b/scripts/install @@ -37,8 +37,6 @@ popd #================================================= ynh_script_progression --message="Configuring application..." -prefix="${path#"/"}/" -prefix=${prefix%"/"} ynh_add_config --jinja --template=local.py.j2 --destination="$install_dir/coin/settings_local.py" chmod 400 "$install_dir/coin/settings_local.py" chown $app "$install_dir/coin/settings_local.py"