mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-13 01:46:23 +01:00
Revert some changes
This commit is contained in:
parent
c15a6f3ae6
commit
5003dcd8b2
3 changed files with 8 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -37,4 +37,4 @@ Temporary Items
|
|||
.apdisk
|
||||
|
||||
# Config
|
||||
conf.js
|
||||
config.js
|
|
@ -9,4 +9,4 @@ const config = {
|
|||
},
|
||||
};
|
||||
|
||||
module.exports = config;
|
||||
module.exports = config;
|
|
@ -1,5 +1,10 @@
|
|||
var mysql = require('mysql2');
|
||||
const config = require('../conf');
|
||||
|
||||
try {
|
||||
const config = require('../config');
|
||||
} catch (e) {
|
||||
console.log('No config file found');
|
||||
}
|
||||
|
||||
function connect() {
|
||||
const connection = mysql.createConnection(config.db);
|
||||
|
|
Loading…
Reference in a new issue