mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-22 06:20:19 +01:00
Rename config.js to conf.js
This commit is contained in:
parent
d142e2bc84
commit
3bd74cb6ea
2 changed files with 1 additions and 13 deletions
12
config.js
12
config.js
|
@ -1,12 +0,0 @@
|
||||||
const env = process.env;
|
|
||||||
|
|
||||||
const config = {
|
|
||||||
db: {
|
|
||||||
host: env.DB_HOST,
|
|
||||||
user: env.DB_USER,
|
|
||||||
password: env.DB_PASSWORD,
|
|
||||||
database: env.DB_NAME,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = config;
|
|
|
@ -1,5 +1,5 @@
|
||||||
var mysql = require('mysql2');
|
var mysql = require('mysql2');
|
||||||
const config = require('../config');
|
const config = require('../conf');
|
||||||
|
|
||||||
function connect() {
|
function connect() {
|
||||||
const connection = mysql.createConnection(config.db);
|
const connection = mysql.createConnection(config.db);
|
||||||
|
|
Loading…
Reference in a new issue