diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-06-03 19:40:08 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-06-03 19:40:08 -0400 |
| commit | 6b7b533629fae83172b1a2bf51a48d3cfff98f47 (patch) | |
| tree | f588f812279cc6e9006d32af8ed08a723b723a0b | |
| parent | a617896215dabedced31d7ac1d96c02f57648c10 (diff) | |
suggest running on another port
| -rw-r--r-- | examples/index.js | 4 | ||||
| -rw-r--r-- | site/index.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/index.js b/examples/index.js index 95d2bcf..aa76af4 100644 --- a/examples/index.js +++ b/examples/index.js @@ -52,6 +52,6 @@ var app = okcms.createApp({ } } -}).listen(1337); +}).listen(process.env.PORT || 1337); -console.log('Server listening at port 1337...'); +console.log('Server listening at port ' + process.env.PORT + '...'); diff --git a/site/index.js b/site/index.js index d36778f..837fff9 100644 --- a/site/index.js +++ b/site/index.js @@ -77,6 +77,6 @@ var app = okcms.createApp({ } } -}).listen(1337); +}).listen(process.env.PORT || 1337); -console.log('Server listening at port 1337...'); +console.log('Server listening at port ' + process.env.PORT + '...'); |
