Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

make this more friendly to heroku et al #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ io.on('connection', (socket) => {
console.log(`Clear buzzes`)
})
})

server.listen(8090, () => console.log('Listening on 8090'))
var port = process.env.PORT || 8090
server.listen(port, () => console.log(`Listening on ${port}`))
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
},
"author": "Dan Farrelly <[email protected]> (http://danfarrelly.nyc)",
"license": "MIT",
Expand Down