diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-23 01:12:02 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-23 01:41:27 +0200 |
commit | 76fd3abc7e4ba2f478f7e3d823b3ab8c8946b97c (patch) | |
tree | b7082f4f6e87438d3296d37bc52d3a1b5c6f9ccf /modules/role/templates | |
parent | 441b866a095bd177a8faa541ea7ef605ba369fe9 (diff) | |
download | Puppet-76fd3abc7e4ba2f478f7e3d823b3ab8c8946b97c.tar.gz Puppet-76fd3abc7e4ba2f478f7e3d823b3ab8c8946b97c.tar.zst Puppet-76fd3abc7e4ba2f478f7e3d823b3ab8c8946b97c.zip |
Fix caldance app deployment
Diffstat (limited to 'modules/role/templates')
-rw-r--r-- | modules/role/templates/caldance/app.ini.erb | 3 | ||||
-rw-r--r-- | modules/role/templates/caldance/manage.py.erb | 9 |
2 files changed, 11 insertions, 1 deletions
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 | |||
4 | 4 | ||
5 | master = true | 5 | master = true |
6 | processes = 10 | 6 | processes = 10 |
7 | gevent = 1000 | 7 | #This produces failure loops |
8 | #gevent = 1000 | ||
8 | http-websockets = true | 9 | http-websockets = true |
9 | 10 | ||
10 | socket = <%= @socket %> | 11 | 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 @@ | |||
1 | #!<%= @home %>/virtualenv/bin/python -O | ||
2 | import os | ||
3 | import sys | ||
4 | |||
5 | if __name__ == "__main__": | ||
6 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main_app.settings") | ||
7 | |||
8 | from django.core.management import execute_from_command_line | ||
9 | execute_from_command_line(sys.argv) | ||