Add environment variables to the supervisord configuration since you need them for NodeJS apps.
This commit is contained in:
parent
b966834a95
commit
1a4f171d1c
|
@ -11,11 +11,14 @@ nodejs_app_root_path: "{{ web_root }}/{{ nodejs_app_name }}"
|
|||
nodejs_app_static_path: "{{ web_root }}/{{ nodejs_app_name }}/static"
|
||||
nodejs_app_hostname: localhost
|
||||
|
||||
nodejs_app_supervisor_command: "PORT={{ nodejs_app_port }} node {{ nodejs_app_root_path }}/{{ nodejs_app_script }}"
|
||||
nodejs_app_supervisor_command: "node {{ nodejs_app_root_path }}/{{ nodejs_app_script }}"
|
||||
|
||||
nodejs_version_family: "5.x"
|
||||
# Other valid value is 4.x
|
||||
nodejs_app_global_install:
|
||||
- browserify
|
||||
- babel-cli
|
||||
- less
|
||||
- browserify
|
||||
- babel-cli
|
||||
- less
|
||||
|
||||
nodejs_app_envs:
|
||||
port: "{{ nodejs_app_port }}"
|
||||
|
|
|
@ -33,3 +33,4 @@ dependencies:
|
|||
nsbase_app_service_stop_signal: QUIT
|
||||
nsbase_app_nginx_config: "{{ nodejs_app_nginx_config }}"
|
||||
nsbase_app_static_path: "{{ nodejs_app_static_path }}"
|
||||
nsbase_app_env: "{{ nodejs_app_envs }}"
|
||||
|
|
Loading…
Reference in New Issue