Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinWilloughby authored Nov 17, 2023
1 parent 2bf6ce2 commit 711e720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const router = require('./router.js');

const port = process.env.PORT || process.env.NODE_PORT || 3000;

const dbURL = process.env.MONGODB_URI || 'mongodb://localhost/FileUpload';
const dbURL = process.env.MONGODB_URI || 'mongodb://127.0.0.1/FileUpload';
mongoose.connect(dbURL).catch((err) => {
if (err) {
console.log('Could not connect to the database');
Expand Down

0 comments on commit 711e720

Please sign in to comment.