Skip to content

Commit

Permalink
fix: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxRMNK committed Mar 9, 2024
1 parent 607c6a1 commit b5af7bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const { requestLogger, errorLogger } = require('./middlewares/logger'); // Ло
// const { MONGO_DB, PORT } = require('./utils/utils'); // Для CORS модуля достать и allowedCors

// Новый вариант. Если в .env нет переменных с данными, будут заданы значения по умолчанию:
// const { MONGO_DB = 'mongodb://localhost:27017/mestodb', PORT = 3001 } = process.env;
const { MONGO_DB, PORT } = process.env;
const { MONGO_DB = 'mongodb://localhost:27017/mestodb', PORT = 3000 } = process.env;
// const { MONGO_DB, PORT } = process.env;

const app = express();

Expand Down

0 comments on commit b5af7bd

Please sign in to comment.