small edits
This commit is contained in:
@@ -1,2 +1 @@
|
||||
CONNECTION_URL = "MongoDB connection URL"
|
||||
PORT = "4 digits"
|
||||
MONGO_URI = "MongoDB connection URL"
|
||||
6
server/.gitignore
vendored
6
server/.gitignore
vendored
@@ -14,4 +14,8 @@
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
.eslintcache
|
||||
.eslintcache
|
||||
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
@@ -18,8 +18,8 @@ app.use(express.urlencoded({ limit: '1mb', extended: false })); // url parser
|
||||
app.use(morgan('common'));
|
||||
|
||||
// configure db:
|
||||
// for "atlas" edit CONNECTION_URL in -> .env file || for "community server" edit <dbname>
|
||||
const CONNECTION_URL = process.env.CONNECTION_URL || 'mongodb://localhost:27017/<dbname>';
|
||||
// for "atlas" edit MONGO_URI in -> .env file || for "community server" edit <dbname>
|
||||
const CONNECTION_URL = process.env.MONGO_URI || 'mongodb://localhost:27017/<dbname>';
|
||||
const DEPRECATED_FIX = { useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true };
|
||||
|
||||
// connect to db
|
||||
|
||||
Reference in New Issue
Block a user