Update deployment to use the npm installation setup.
This commit is contained in:
parent
b6640b38fc
commit
0c35aa1432
|
@ -31,7 +31,5 @@
|
||||||
- name: install coffeescript + less dependencies
|
- name: install coffeescript + less dependencies
|
||||||
npm: name={{ item }} global=yes state=present registry=http://registry.npmjs.org/
|
npm: name={{ item }} global=yes state=present registry=http://registry.npmjs.org/
|
||||||
with_items:
|
with_items:
|
||||||
- coffee-script
|
|
||||||
- less
|
- less
|
||||||
- browserify
|
- browserify
|
||||||
- bower
|
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
pip: requirements=requirements.txt virtualenv={{ rookeries_venv }} chdir={{ app_root_path }}
|
pip: requirements=requirements.txt virtualenv={{ rookeries_venv }} chdir={{ app_root_path }}
|
||||||
when: deploy_package.stat.exists
|
when: deploy_package.stat.exists
|
||||||
|
|
||||||
|
# TODO Remove after transition to CouchDB as a store.
|
||||||
- name: install extra MySQL python connector dependency
|
- name: install extra MySQL python connector dependency
|
||||||
pip: name=mysql-connector-python virtualenv={{ rookeries_venv }} version=1.1.6
|
pip: name=mysql-connector-python virtualenv={{ rookeries_venv }} version=1.1.6
|
||||||
extra_args="--allow-external mysql-connector-python --allow-unverified mysql-connector-python"
|
extra_args="--allow-external mysql-connector-python --allow-unverified mysql-connector-python"
|
||||||
|
@ -23,9 +24,8 @@
|
||||||
state=directory recurse=yes
|
state=directory recurse=yes
|
||||||
when: deploy_package.stat.exists
|
when: deploy_package.stat.exists
|
||||||
|
|
||||||
# TODO Replace with npm installation in the future.
|
- name: install frontend dependencies for app
|
||||||
- name: install bower dependencies in app
|
npm: path={{ app_root_path }} state=present registry=http://registry.npmjs.org/
|
||||||
command: bower install --allow-root --quiet chdir={{ web_root_path }}/rookeries_webapp
|
|
||||||
notify:
|
notify:
|
||||||
- restart uwsgi app
|
- restart uwsgi app
|
||||||
when: deploy_package.stat.exists
|
when: deploy_package.stat.exists
|
||||||
|
|
|
@ -4,7 +4,7 @@ app_name: "{{ rookeries_app_name }}"
|
||||||
|
|
||||||
# Introduced from deployment playbook
|
# Introduced from deployment playbook
|
||||||
rookeries_venv: "{{ virtualenv_root_path }}/rookeries"
|
rookeries_venv: "{{ virtualenv_root_path }}/rookeries"
|
||||||
rookeries_package: rookeries-0.4.0.tar.bz2
|
rookeries_package: rookeries-0.5.0.tar.bz2
|
||||||
rookeries_package_path: "{{ rookeries_package }}"
|
rookeries_package_path: "{{ rookeries_package }}"
|
||||||
|
|
||||||
# Extra virtualenv if working in a dev environment to provide the mailsink testing server
|
# Extra virtualenv if working in a dev environment to provide the mailsink testing server
|
||||||
|
|
Loading…
Reference in New Issue