Add configuration of path to static assets.

This commit is contained in:
Dorian 2016-05-17 23:40:20 -04:00
parent 5b9cad7359
commit 593a419261
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ nodejs_app_port: 3000
nodejs_app_script: "src/index.js"
nodejs_app_root_path: "{{ web_root }}/{{ nodejs_app_name }}"
nodejs_app_static_path: "{{ web_root }}/{{ nodejs_app_name }}/static"
nodejs_app_nginx_hostname: localhost
nodejs_app_supervisor_command: "PORT={{ nodejs_app_port }} node {{ nodejs_app_root }}/{{ nodejs_app_script }}"

View File

@ -29,6 +29,7 @@ dependencies:
nsbase_app_service_command: "{{ nodejs_app_supervisor_command }}"
nsbase_app_service_stop_signal: QUIT
nsbase_nginx_app_config: "{{ nodejs_app_nginx_config }}"
nsbase_app_nginx_static_path: "{{ nodejs_app_static_path }}"
# - role: "git+https://bitbucket.org/dorianpula/ansible-nodejs,,nodejs"
- role: "nodejs"
node_version_family: "{{ nodejs_version_family }}"