Adding new deploy configuration
This commit is contained in:
1 parent
320112d8a7
commit
bcaf68658b
4 files changed
+33
-13
No files matched your search
+1
-1
@@ -21,7 +21,7 @@ app.post('/graphql', (req, res, next) => {
|
||||
app.use(cors())
|
||||
|
||||
// Database Connection
|
||||
mongoose.connect(`mongodb://${process.env.DB_USERNAME}:${process.env.DB_PASSWORD}@${process.env.DB_DOMAIN}`, { useNewUrlParser: true })
|
||||
mongoose.connect(process.env.MONGO_URL, { useNewUrlParser: true })
|
||||
|
||||
mongoose.connection.once('open', () => {
|
||||
logger.info('Connected to the DB.')
|
||||
|
||||
Reference in new issue
Block a user