2015-01-23 11 views
9

Ich habe eine einfache Frage. Wie sieht eine Supervisord-Konfiguration aus, um eine Express-App zu starten?Wie "npm Start" mit Supervisord?

[supervisord] 
nodaemon=true 

[program:sshd] 
command=/usr/sbin/sshd -D 

[programm:api] 
directory=/var/www/my_api 
command=npm start 

Ich habe auch versucht mit:

[programm:api] 
command=node /var/www/my_api/app.js 

aber es nicht startet und keine Fehler protokolliert werden. Irgendwelche Ideen?

+0

Startet sshd? – Vinz243

Antwort

5

Ein Tippfehler verursacht wurde, das Problem

[programm:api] 

ist falsch. Rechts:

[program:api]