-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigs.coffee
35 lines (29 loc) · 963 Bytes
/
configs.coffee
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
29
30
31
32
33
34
35
# If no env, set to local
if not process.env?.application_env
process.env.application_env = "local"
configs = {
name: "Cy"
}
switch process.env.application_env
when "local"
configs.mongoURL = "mongodb://localhost/cy"
configs.host = "localhost"
configs.port = "3333"
configs.url = "http://localhost:3333"
configs.cache = false
configs.clef =
app_id: '775da2c4142900d03bf3fca4cb13f93e'
app_secret: '7d577bf2fdb7b9d92283def6fd3e11fb'
configs.secret_key = "secret key"
when "production"
configs.cache = true
configs.mongoURL = process.env.MONGOLAB_URI
configs.url = "http://cydoemus.vault.tk"
configs.port = process.env.PORT || "80"
configs.host = process.env.HOST || "cydoemus.vault.tk"
configs.url = process.env.URL || "https://cydoemus.vault.tk"
configs.clef =
app_id: process.env.CLEF_APP_ID
app_secret: process.env.CLEF_APP_SECRET
configs.secret_key = process.env.SECRET_KEY
module.exports = exports = configs