parent
b9ca47574d
commit
ad7d4011dc
|
@ -3,7 +3,7 @@ server {
|
|||
server_name localhost;
|
||||
|
||||
location /static/ {
|
||||
alias /var/www/rookeries/static/;
|
||||
alias /srv/www/rookeries/rookeries/static/;
|
||||
}
|
||||
|
||||
location / { try_files $uri @yourapplication; }
|
||||
|
|
|
@ -17,4 +17,8 @@
|
|||
pip: name=mysql-connector-python virtualenv={{ rookeries_venv }} version=1.1.6
|
||||
extra_args='--allow-external mysql-connector-python --allow-unverified mysql-connector-python'
|
||||
|
||||
# TODO This is problematic, and maybe a good sign why deploying a web app via pip isn't the wisest idea.
|
||||
- name: Link rookeries static pages to top-level of virtualenv
|
||||
file: src={{ rookeries_venv }}/lib/python2.7/site-packages/rookeries/ dest={{ rookeries_venv }}/rookeries state=link
|
||||
|
||||
# TODO Step 4 - Setup environment variables on target system related to config.
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
- supervisord
|
||||
- supervisorctl
|
||||
|
||||
# TODO Separate out starting and stopping of supervisord + supervisorctl outside of provisioning
|
||||
- name: Check if supervisord is running
|
||||
shell: pgrep supervisor
|
||||
ignore_errors: on
|
||||
|
|
|
@ -34,3 +34,7 @@
|
|||
|
||||
- name: Add vagrant user to www-data
|
||||
user: name={{ ansible_env.SUDO_USER }} append=yes groups={{ web_server_group }}
|
||||
|
||||
- name: Change permissions on nginx logs
|
||||
file: path=/var/log/nginx state=directory
|
||||
owner={{ web_server_group }} group={{ web_server_group }} mode=0766
|
||||
|
|
Loading…
Reference in New Issue