Fix virtualenv symlink for symlink deployment setup in role.
This commit is contained in:
parent
9c99d02544
commit
125d6e5ca8
|
@ -16,6 +16,7 @@ dependencies:
|
|||
- role: dorianpula.nginx-uwsgi-supervisor
|
||||
app_name: "{{ rookeries_app_name }}"
|
||||
app_root_path: "{{ rookeries_app_symlink }}"
|
||||
app_venv: "{{ rookeries_venv_symlink }}"
|
||||
app_nginx_hostname: "{{ rookeries_app_hostname }}"
|
||||
app_uwsgi_port: "{{ rookeries_local_uwsgi_port }}"
|
||||
app_uwsgi_executable: "rookeries:make_rookeries_app()"
|
||||
|
|
|
@ -6,7 +6,11 @@
|
|||
|
||||
- name: upload + extract rookeries package to web server home
|
||||
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
|
||||
|
||||
- name: install rookeries dependencies
|
||||
|
@ -23,11 +27,6 @@
|
|||
npm: path={{ rookeries_deploy_dir }} state=present registry=http://registry.npmjs.org/
|
||||
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.
|
||||
file: state=link src={{ rookeries_deploy_dir }} path={{ rookeries_app_symlink }}
|
||||
owner={{ web_server_group }} group={{ web_server_group }}
|
||||
|
|
Loading…
Reference in New Issue