summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Readme.md4
-rw-r--r--site/index.js5
2 files changed, 5 insertions, 4 deletions
diff --git a/Readme.md b/Readme.md
index 55d4d3e..771a1f2 100644
--- a/Readme.md
+++ b/Readme.md
@@ -3,7 +3,7 @@
> "Pretty good"
> - Steve Jobs
-## To run:
+## To run the demo:
* npm install
* cd examples
@@ -13,7 +13,6 @@ Server will be running on http://lvh.me:1337/
Admin area available on http://lvh.me:1337/admin/
-
## Config
To access the admin area, you need to set a username and password.
@@ -31,3 +30,4 @@ S3_KEY=s3key
S3_SECRET=s3secret
S3_BUCKET=bucketname
```
+
diff --git a/site/index.js b/site/index.js
index 430f73f..b81b3ab 100644
--- a/site/index.js
+++ b/site/index.js
@@ -133,6 +133,7 @@ var app = okcms.createApp({
}
}
-}).listen(1337);
+}).listen(process.env.PORT || 1337);
+
+console.log('Server listening at port ' + (process.env.PORT || 1337) + '...');
-console.log('Server listening at port 1337...');