Update
This commit is contained in:
1 parent
900a4f65da
commit
be8c70ab94
7 files changed
+118
-13
No files matched your search
@@ -3,10 +3,12 @@ const bot = require('./bot');
|
||||
const website = require('./website');
|
||||
// Import config and export
|
||||
const config = require('./config');
|
||||
const mongoose = require('mongoose');
|
||||
// Connect to mongoDB
|
||||
try {
|
||||
mongoose.connect(config.mongoDB.url);
|
||||
mongoose.connect(config.mongodb);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
console.log('Error connecting to mongoDB');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user