diff options
| -rw-r--r-- | .env-example | 7 | ||||
| -rw-r--r-- | lib/index.js | 5 |
2 files changed, 6 insertions, 6 deletions
diff --git a/.env-example b/.env-example index 3dd7276..80a6d98 100644 --- a/.env-example +++ b/.env-example @@ -1,8 +1,9 @@ +HOST_NAME=lvh.me +PORT=5000 DB_HOST=localhost DB_NAME=luckyplop -DB_USER=your_db_username -DB_PASS=your_db_password -HOST_NAME=5.k +DB_USER= +DB_PASS= S3_KEY= S3_SECRET= S3_BUCKET=luckyplop diff --git a/lib/index.js b/lib/index.js index f4b01f4..d8805b3 100644 --- a/lib/index.js +++ b/lib/index.js @@ -21,7 +21,6 @@ var upload = require("./upload") var site = module.exports = {} site.init = function(){ app = express() - app.set('port', 5000) app.set('view engine', 'ejs') app.set('views', path.join(__dirname, '../views')) app.use(express.static(path.join(__dirname, '../public'))) @@ -30,7 +29,7 @@ site.init = function(){ app.use(express.query()) - server = http.createServer(app).listen(5000, function () { + server = http.createServer(app).listen(process.env.PORT, function () { console.log('LuCkYPLoP listening at http://5.k:%s', server.address().port) }) @@ -64,4 +63,4 @@ site.init = function(){ } }) }) -}
\ No newline at end of file +} |
