Skip to content

Commit

Permalink
process.env.PORT added
Browse files Browse the repository at this point in the history
  • Loading branch information
mutazen committed Jun 18, 2021
1 parent ac21974 commit b83b539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mongoose.connect(
.use(express.json())
.use(express.static(path.join(__dirname, 'public')))
.use('/api', router)
.listen(8080, (err) => {
.listen(process.env.PORT || 8080, (err) => {
console.info('\n\n' + '>'.repeat(40))
console.info('💻 Reboot Server Live')
console.info('📡 PORT: http://localhost:8080')
Expand Down

0 comments on commit b83b539

Please sign in to comment.