Hello
I’m doing a test with ansible using the “upstart”, but is not run “upstart exec path”.
Below example api.yml.
Does anyone have any idea why you’re not running?
He did not start my Node.js API.
{{app_path}} = /var/app/cart
{{app_bin}} = index.js
{{http_host}} = 127.0.0.1
{{http_port}} = 3000
|
|
remote_user: root |
|
roles: |
|
|
|
|
|
|
|
|
|
upstart_name: “{{app_name}}” |
|
upstart_start_on: |
|
|
|
upstart_stop_on: |
|
|
|
upstart_respawn: yes |
|
upstart_respawn_limit: yes |
|
upstart_respawn_limit_count: 5 |
|
upstart_respawn_limit_interval: 20 |
|
upstart_user: “{{deploy_user}}” |
|
upstart_group: “{{deploy_group}}” |
|
upstart_exec_path: “/usr/bin/node {{app_path}}/{{app_bin}}” |
|
upstart_exec_flags: |
|
|
|
upstart_environment_global: no |
|
upstart_environment: |
|
|
|
|
|
|
|
haproxy_backend_servers: |
|
|
|
address: “{{http_host}}:{{http_port}}” |
|
|