Dotcloud Nodejs Supervisord.conf Not Working
I've been trying to get my nodejs server process to be monitored by supervisor, however I'm having issues getting supervisord.conf to work. When I deploy, I get the following error
Solution 1:
After investigating the issue, it looks like the issue came from the fact that dotcloud.yml
specified approot: app
. In that case, it is useful to note that:
/home/dotcloud/code
will point to the whole code repository;/home/dotcloud/current
will point to the approot (more specifically,/home/dotcloud/current
will be a symlink to the approot, i.e.code/app
in that case).
Therefore, supervisord.conf
should not contain:
command = node /home/dotcloud/current/app/server.js
But, instead:
command = node /home/dotcloud/current/server.js
The key was in the Node.js logs themselves, since Node.js was complaining about being unable to locate /home/dotcloud/current/app/server.js
.
Post a Comment for "Dotcloud Nodejs Supervisord.conf Not Working"