Skip to content

Commit

Permalink
update bin
Browse files Browse the repository at this point in the history
update port, heroku need it to be dynamically
  • Loading branch information
EmadAghaei committed Jun 2, 2018
1 parent 414b234 commit ea39c4d
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 20 deletions.
119 changes: 100 additions & 19 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var server = http.createServer(app);
* Listen on provided port, on all network interfaces.
*/

server.listen(port);
server.listen(process.env.PORT ||port);
server.on('error', onError);
server.on('listening', onListening);

Expand Down

0 comments on commit ea39c4d

Please sign in to comment.