Update deployment to use the npm installation setup.

This commit is contained in:
Dorian 2015-06-22 08:09:13 -04:00
parent b6640b38fc
commit 0c35aa1432
3 changed files with 4 additions and 6 deletions

View File

@ -31,7 +31,5 @@
- name: install coffeescript + less dependencies
npm: name={{ item }} global=yes state=present registry=http://registry.npmjs.org/
with_items:
- coffee-script
- less
- browserify
- bower

View File

@ -13,6 +13,7 @@
pip: requirements=requirements.txt virtualenv={{ rookeries_venv }} chdir={{ app_root_path }}
when: deploy_package.stat.exists
# TODO Remove after transition to CouchDB as a store.
- name: install extra MySQL python connector dependency
pip: name=mysql-connector-python virtualenv={{ rookeries_venv }} version=1.1.6
extra_args="--allow-external mysql-connector-python --allow-unverified mysql-connector-python"
@ -23,9 +24,8 @@
state=directory recurse=yes
when: deploy_package.stat.exists
# TODO Replace with npm installation in the future.
- name: install bower dependencies in app
command: bower install --allow-root --quiet chdir={{ web_root_path }}/rookeries_webapp
- name: install frontend dependencies for app
npm: path={{ app_root_path }} state=present registry=http://registry.npmjs.org/
notify:
- restart uwsgi app
when: deploy_package.stat.exists

View File

@ -4,7 +4,7 @@ app_name: "{{ rookeries_app_name }}"
# Introduced from deployment playbook
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 }}"
# Extra virtualenv if working in a dev environment to provide the mailsink testing server