first commit
This commit is contained in:
15
config/collections/dbkebengkel.js
Normal file
15
config/collections/dbkebengkel.js
Normal file
@ -0,0 +1,15 @@
|
||||
const mongoose = require('mongoose');
|
||||
// const dburl='mongodb://root:s4lasan2016@150.242.110.114:27017/dbmidtpay?authSource=admin';
|
||||
const dburl='mongodb://root:s4lasan2016@103.84.192.250:27017/dbkebengkel?authSource=admin';
|
||||
|
||||
mongoose.Promise = global.Promise;
|
||||
mongoose.connect(dburl,{ useNewUrlParser: true, useUnifiedTopology: true },function(err) {
|
||||
if (err) {
|
||||
console.error('Error connecting: ' + err.stack);
|
||||
return;
|
||||
}
|
||||
console.log('Collection established');
|
||||
//db.close();
|
||||
});
|
||||
|
||||
module.exports = mongoose;
|
||||
Reference in New Issue
Block a user