From 76fd3abc7e4ba2f478f7e3d823b3ab8c8946b97c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 23 Apr 2020 01:12:02 +0200 Subject: Fix caldance app deployment --- modules/role/templates/caldance/app.ini.erb | 3 ++- modules/role/templates/caldance/manage.py.erb | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 modules/role/templates/caldance/manage.py.erb (limited to 'modules/role/templates/caldance') diff --git a/modules/role/templates/caldance/app.ini.erb b/modules/role/templates/caldance/app.ini.erb index df6fcb9..f7d70ed 100644 --- a/modules/role/templates/caldance/app.ini.erb +++ b/modules/role/templates/caldance/app.ini.erb @@ -4,7 +4,8 @@ wsgi-file = main_app/wsgi.py master = true processes = 10 -gevent = 1000 +#This produces failure loops +#gevent = 1000 http-websockets = true socket = <%= @socket %> diff --git a/modules/role/templates/caldance/manage.py.erb b/modules/role/templates/caldance/manage.py.erb new file mode 100644 index 0000000..03cc97a --- /dev/null +++ b/modules/role/templates/caldance/manage.py.erb @@ -0,0 +1,9 @@ +#!<%= @home %>/virtualenv/bin/python -O +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main_app.settings") + + from django.core.management import execute_from_command_line + execute_from_command_line(sys.argv) -- cgit v1.2.3