Permalink
Browse files

Add support to "PORT" instead of app_port. #408

  • Loading branch information...
1 parent 9d1f6a0 commit 595a03a4be78f8a8456470d4075ba04e46cfa92c @alejandro alejandro committed Nov 20, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 scripts/chroot_runner.js
@@ -26,8 +26,9 @@ if (config.env) {
env[key] = String(config.env[key]);
});
}
-env.app_port = parseInt(config.port, 10);
-env.app_host = config.ip;
+env.app_port = env.PORT = parseInt(config.port, 10);
+env.app_host = env.HOST = config.ip;
+
var args = ['/app/' + config.start];
var chroot_res = daemon.chroot(config.appchroot);
if (chroot_res !== true) {

0 comments on commit 595a03a

Please sign in to comment.