Add configuration of path to static assets.
This commit is contained in:
parent
5b9cad7359
commit
593a419261
|
@ -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 }}"
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in New Issue