Skip to content

Commit

Permalink
added port option
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasfroeller committed Apr 29, 2024
1 parent 419a3ee commit 99c603c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PORT="8080"
DEV_MODE="true"
HEROKU_API_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
DEV_ACCESS_PASSPHRASE="xxxxxxxxxxxxxxxxxxxxxxxxxxx"
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const webserver = require('./app');
require('dotenv').config();

webserver
.listen(80)
.listen(process.env.PORT || 80)
.then((socket) => console.log('Webserver started on http://localhost:80'))
.catch((error) => console.log('Failed to start webserver on http://localhost:80'));

0 comments on commit 99c603c

Please sign in to comment.