Skip to content

Commit

Permalink
Disabled helper - it wasn't there to allow for proxying
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Jul 3, 2012
1 parent c54f28f commit bca1846
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions lib/app.js
Expand Up @@ -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.
Expand Down

0 comments on commit bca1846

Please sign in to comment.