Commit c425239b authored by Philippe Pepiot's avatar Philippe Pepiot Committed by Denis Laxalde
Browse files

Set default http port in defaults.yaml instead of in jinja template

Just like other variables
parent 2f0b5eac
......@@ -5,7 +5,7 @@ saemref:
name: saemref
user: saemref
base_url:
port:
port: 8080
anonymous_user:
anonymous_password:
wsgi: true
......
{% from "saemref/map.jinja" import saemref with context -%}
[program:saemref]
{% if saemref.instance.wsgi -%}
command=/home/{{ saemref.instance.user }}/venv/bin/gunicorn 'cubicweb.pyramid:wsgi_application()' --threads {{ saemref.instance.wsgi_threads }} --workers {{ saemref.instance.wsgi_workers }} --bind 0.0.0.0:{{ saemref.instance.port|default('8080', true) }}
command=/home/{{ saemref.instance.user }}/venv/bin/gunicorn 'cubicweb.pyramid:wsgi_application()' --threads {{ saemref.instance.wsgi_threads }} --workers {{ saemref.instance.wsgi_workers }} --bind 0.0.0.0:{{ saemref.instance.port }}
{% else -%}
command=/home/{{ saemref.instance.user }}/venv/bin/cubicweb-ctl pyramid -D {{ saemref.instance.name }}
{% endif -%}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment