Skip to content

Commit

Permalink
.env to appsettings
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwor11 committed Jun 27, 2023
1 parent a40528f commit 61b27f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ require('dotenv').config();

const app = express();

const dbURL = process.env.CONNECTION_URL
const PORT = process.env.PORT || 80
const dbURL = process.env.APPSETTING_CONNECTION_URL
const PORT = process.env.APPSETTING_PORT || 80
mongoose.connect(dbURL, { useNewUrlParser: true, useUnifiedTopology: true,})
.then((result)=>{app.listen(PORT)})
.catch((err)=>{console.log(err)})
Expand Down

0 comments on commit 61b27f7

Please sign in to comment.