diff --git a/deployment/rookeries_install.yaml b/deployment/rookeries_install.yaml index c19fea9..a93708b 100644 --- a/deployment/rookeries_install.yaml +++ b/deployment/rookeries_install.yaml @@ -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 diff --git a/pre_deployment.yaml b/pre_deployment.yaml index ff3168a..f45748f 100644 --- a/pre_deployment.yaml +++ b/pre_deployment.yaml @@ -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 diff --git a/pre_deployment/nodejs.yaml b/pre_deployment/nodejs.yaml index 4edb33d..835cb86 100644 --- a/pre_deployment/nodejs.yaml +++ b/pre_deployment/nodejs.yaml @@ -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