Skip to content

Commit

Permalink
Created config variable for port and fixed project variable typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jczaplew committed Aug 14, 2014
1 parent d0295fa commit d7fec52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion routes/config.example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
"imagePath": "/Users/you/Sites/ummp/public/images/",
"project_no": 1,
"project_id": 1,
"port": 8080,
"credentials": {
'host': 'localhost',
'user': 'you',
Expand Down
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ app.use(function(error, req, res, next) {
res.send('500: Internal Server Error', 500);
});

app.listen(8080);

console.log('Listening on port 8080...');
app.listen(config.port, function() {
console.log('Listening on port ' + config.port + '...');
});

0 comments on commit d7fec52

Please sign in to comment.