diff --git a/lib/app.js b/lib/app.js index 9ee1197a85..ba1ef26e80 100644 --- a/lib/app.js +++ b/lib/app.js @@ -24,14 +24,16 @@ app.templates = {}; app.PRODUCTION = 'production'; app.DEVELOPMENT = 'development'; -if (process.env.PORT) { - // overwrite the port in the config - if (options.url.host.indexOf(':') === -1) { - options.url.host += ':' + process.env.PORT; - } else { - options.url.host = options.url.host.replace(/:.*$/, ':' + process.env.PORT); - } -} +// DISABLED BY REM - this allows us to put JS Bin behind a proxy, and was only added +// as a helper +// if (process.env.PORT) { +// // overwrite the port in the config +// if (options.url.host.indexOf(':') === -1) { +// options.url.host += ':' + process.env.PORT; +// } else { +// options.url.host = options.url.host.replace(/:.*$/, ':' + process.env.PORT); +// } +// } // Apply the keys from the config file. All nested properties are // space delimited to match the express style.