Skip to content

Commit

Permalink
attempt at fixing port issue on heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
flbarfield committed Oct 10, 2023
1 parent 986ba45 commit f082745
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const connectDB = require('./config/database')
const homeRoutes = require('./routes/home')
const fitnessRoute = require('./routes/fitnessApp')


//Use .env file in config folder
require('dotenv').config({path: './config/.env'})

Expand Down Expand Up @@ -60,6 +59,6 @@ app.use('/', homeRoutes)
app.use('/fitnessApp', fitnessRoute)

//Server Running
app.listen(process.env.PORT, () => {
app.listen(process.env.PORT || 2121, () => {
console.log('Server is running! WHOOP! Port2121')
})

0 comments on commit f082745

Please sign in to comment.