Make things a bit more complicated

pull/117/merge
Lennart Kats 2015-06-16 14:53:14 +02:00
rodzic 8ca0f95d98
commit 440494028c
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -7,6 +7,7 @@ module.exports = function(manifest, installPath) {
}
var path = require("path");
var os = require("os");
var runners = require("../plugins/c9.ide.run/runners_list").local;
var builders = require("../plugins/c9.ide.run.build/builders_list");
@ -28,6 +29,7 @@ module.exports = function(manifest, installPath) {
var correctedInstallPath = installPath.substr(0, home.length) == home
? "~" + installPath.substr(home.length)
: installPath;
var inContainer = os.hostname().match(/-\d+$/);
var config = {
standalone: true,
@ -45,7 +47,7 @@ module.exports = function(manifest, installPath) {
sdk: sdk,
pid: process.pid,
port: process.env.PORT || 8181,
host: process.env.IP || "127.0.0.1",
host: process.env.IP || (inContainer ? "0.0.0.0" : "127.0.0.1"),
testing: false,
platform: process.platform,
arch: process.arch,