2014-11-18 08:24:39 -05:00
|
|
|
---
|
2015-01-07 18:23:43 -05:00
|
|
|
- name: install uwsgi server
|
|
|
|
pip: name=uwsgi virtualenv={{ uwsgi_venv }} version=2.0
|
|
|
|
sudo: yes
|
2014-11-18 08:24:39 -05:00
|
|
|
|
2015-01-13 22:45:07 -05:00
|
|
|
- name: configure app on uwsgi server
|
2016-05-16 17:58:57 -04:00
|
|
|
template: src=app_uwsgi.ini dest={{ uwsgi_config_path }}/{{ uwsgi_app_ini }}
|
2015-01-07 18:23:43 -05:00
|
|
|
sudo: yes
|
2016-05-16 17:58:57 -04:00
|
|
|
notify: restart uwsgi app
|
|
|
|
|
|
|
|
- name: configure nginx app with uwsgi specific block.
|
|
|
|
blockinfile:
|
|
|
|
dest: /etc/nginx/sites-available/{{ nginx_app_config }}
|
|
|
|
insertafter: "# Include your setup to connect to the webapp setup here."
|
|
|
|
marker: "# -- {mark} UWSGI App config for {{ app_name }} --"
|
|
|
|
block: |
|
|
|
|
include uwsgi_params;
|
|
|
|
uwsgi_pass 127.0.0.1:{{ app_uwsgi_port }};
|
|
|
|
sudo: yes
|
|
|
|
notify: restart nginx
|