-
Notifications
You must be signed in to change notification settings - Fork 1
/
env.js
28 lines (28 loc) · 1004 Bytes
/
env.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = {
"development" : {
"mode": process.env.MODE || "pi",
"content_root": process.env.LIBERRY_ROOT + "/content",
"code_root": process.env.LIBERRY_ROOT + "/code",
"sequelize": {
"username": "root",
"password": "password",
"database": "liberry",
"host": "localhost",
"storage": process.env.LIBERRY_ROOT + "/database.sqlite",
"dialect": process.env.MODE == "central" ? "mysql" : "sqlite"
}
},
"production" : {
"mode": process.env.MODE || "pi",
"content_root": process.env.LIBERRY_ROOT + "/content",
"code_root": process.env.LIBERRY_ROOT + "/code",
"sequelize": {
"username": "root",
"password": "password",
"database": "liberry",
"host": "localhost",
"storage": process.env.LIBERRY_ROOT + "/database.sqlite",
"dialect": process.env.MODE == "central" ? "mysql" : "sqlite"
}
}
};