Fix virtualenv symlink for symlink deployment setup in role.

This commit is contained in:
Dorian 2015-07-21 07:37:18 -04:00
parent 9c99d02544
commit 125d6e5ca8
2 changed files with 6 additions and 6 deletions

View File

@ -16,6 +16,7 @@ dependencies:
- role: dorianpula.nginx-uwsgi-supervisor - role: dorianpula.nginx-uwsgi-supervisor
app_name: "{{ rookeries_app_name }}" app_name: "{{ rookeries_app_name }}"
app_root_path: "{{ rookeries_app_symlink }}" app_root_path: "{{ rookeries_app_symlink }}"
app_venv: "{{ rookeries_venv_symlink }}"
app_nginx_hostname: "{{ rookeries_app_hostname }}" app_nginx_hostname: "{{ rookeries_app_hostname }}"
app_uwsgi_port: "{{ rookeries_local_uwsgi_port }}" app_uwsgi_port: "{{ rookeries_local_uwsgi_port }}"
app_uwsgi_executable: "rookeries:make_rookeries_app()" app_uwsgi_executable: "rookeries:make_rookeries_app()"

View File

@ -6,7 +6,11 @@
- name: upload + extract rookeries package to web server home - name: upload + extract rookeries package to web server home
unarchive: src={{ rookeries_package_path }} dest={{ web_root_path }} unarchive: src={{ rookeries_package_path }} dest={{ web_root_path }}
sudo: yes when: deploy_package.stat.exists
- name: fix permissions on extracted web app
file: path={{ rookeries_deploy_dir }} owner={{ web_server_group }} group={{ web_server_group }}
state=directory recurse=yes
when: deploy_package.stat.exists when: deploy_package.stat.exists
- name: install rookeries dependencies - name: install rookeries dependencies
@ -23,11 +27,6 @@
npm: path={{ rookeries_deploy_dir }} state=present registry=http://registry.npmjs.org/ npm: path={{ rookeries_deploy_dir }} state=present registry=http://registry.npmjs.org/
when: deploy_package.stat.exists when: deploy_package.stat.exists
- name: fix permissions on extracted web app
file: path={{ rookeries_deploy_dir }} owner={{ web_server_group }} group={{ web_server_group }}
state=directory recurse=yes
when: deploy_package.stat.exists
- name: add in symlink to deployed package. - name: add in symlink to deployed package.
file: state=link src={{ rookeries_deploy_dir }} path={{ rookeries_app_symlink }} file: state=link src={{ rookeries_deploy_dir }} path={{ rookeries_app_symlink }}
owner={{ web_server_group }} group={{ web_server_group }} owner={{ web_server_group }} group={{ web_server_group }}