Explicitly pass supervisor config path

Otherwise it picks up the system default config
This commit is contained in:
Girish Ramakrishnan
2014-06-19 13:06:23 -07:00
parent ec4c4cdbeb
commit 339446dccc
+1 -1
View File
@@ -150,7 +150,7 @@ function configureNginx(app, freePort, callback) {
return callback(null);
}
child_process.exec("supervisorctl restart nginx", { timeout: 10000 }, function (error, stdout, stderr) {
child_process.exec("supervisorctl -c supervisor/supervisord.conf restart nginx", { timeout: 10000 }, function (error, stdout, stderr) {
if (error) {
debug('Error configuring nginx. Reload nginx manually for now', error);
appdb.update(app.id, { statusCode: appdb.STATUS_NGINX_ERROR, statusMessage: error }, NOOP_CALLBACK);