Add installation of bower dependencies step, that was missed in earlier iterations of the provisioning setup.

Add task install external role for setting up NGINX, UWSGI and Supervisord.
This commit is contained in:
Dorian 2015-02-26 08:24:52 -05:00
parent ad04c4cc01
commit cca2c28694
3 changed files with 12 additions and 2 deletions

View File

@ -23,3 +23,8 @@
state=directory recurse=yes
# TODO Step 4 - Setup environment variables on target system related to config.
- name: install bower dependencies in app
command: bower install --allow-root --quiet chdir={{ web_server_home }}/rookeries_webapp
# TODO Replace with bower command in future version of Ansible (1.9.0)
# bower: path={{ web_server_home }}/rookeries_webapp state=present

View File

@ -3,8 +3,11 @@
sudo: yes
roles:
- { role: ansible-nginx-uwsgi-supervisor, app_name: rookeries, nginx_hostname: localhost,
uwsgi_port: 8001, uwsgi_app_executable: "rookeries:make_rookeries_app()" }
- { role: ansible-nginx-uwsgi-supervisor,
app_name: rookeries,
app_nginx_hostname: localhost,
app_uwsgi_port: 8001,
app_uwsgi_executable: "rookeries:make_rookeries_app()" }
tasks:
- include: pre_deployment/base_linux.yaml
- include: pre_deployment/mysql_db.yaml

View File

@ -4,6 +4,7 @@
with_items:
- nodejs
- npm
- git
- name: link nodejs binary correctly
file: src=/usr/bin/nodejs dest=/usr/bin/node state=link
@ -13,3 +14,4 @@
with_items:
- coffee-script
- less
- bower