Add environment variables to the supervisord configuration since you need them for NodeJS apps.

This commit is contained in:
Dorian 2016-05-20 00:31:47 -04:00
parent b966834a95
commit 1a4f171d1c
2 changed files with 8 additions and 4 deletions

View File

@ -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_static_path: "{{ web_root }}/{{ nodejs_app_name }}/static"
nodejs_app_hostname: localhost 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" nodejs_version_family: "5.x"
# Other valid value is 4.x # Other valid value is 4.x
nodejs_app_global_install: nodejs_app_global_install:
- browserify - browserify
- babel-cli - babel-cli
- less - less
nodejs_app_envs:
port: "{{ nodejs_app_port }}"

View File

@ -33,3 +33,4 @@ dependencies:
nsbase_app_service_stop_signal: QUIT nsbase_app_service_stop_signal: QUIT
nsbase_app_nginx_config: "{{ nodejs_app_nginx_config }}" nsbase_app_nginx_config: "{{ nodejs_app_nginx_config }}"
nsbase_app_static_path: "{{ nodejs_app_static_path }}" nsbase_app_static_path: "{{ nodejs_app_static_path }}"
nsbase_app_env: "{{ nodejs_app_envs }}"