From 339446dccc168323e67ba3fed63149fe951f4d1d Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 19 Jun 2014 13:06:23 -0700 Subject: [PATCH] Explicitly pass supervisor config path Otherwise it picks up the system default config --- src/apptask.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apptask.js b/src/apptask.js index 28ea3c41b..de260b281 100644 --- a/src/apptask.js +++ b/src/apptask.js @@ -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);