This repository was archived by the owner on Jun 27, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +11
-50
lines changed Expand file tree Collapse file tree 5 files changed +11
-50
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "host" : " localhost" ,
3
- "port" : 3030 ,
4
- "baseURL" : " http://localhost:3030" ,
5
- "frontURL" : " http://localhost:3000" ,
6
- "smtpConfig" : {
7
- "host" : " 0.0.0.0" ,
8
- "port" : 1025 ,
9
- "ignoreTLS" : true
10
- },
11
- "thumbor" : {
12
- "url" : " " ,
13
- "key" : " "
14
- },
15
- "seeder" : {
16
- "runOnInit" : false ,
17
- "dropDatabase" : false
18
- },
19
- "defaultEmail" :
" [email protected] "
2
+ "port" : 3031 ,
3
+ "baseURL" : " http://localhost:3031" ,
4
+ "mongodb" : " mongodb://localhost:27017/hc_api_test"
20
5
}
Original file line number Diff line number Diff line change 17
17
"apiSecret" : " TE9TqAk2xK[9EFJL" ,
18
18
"sentry" : {},
19
19
"seeder" : {
20
- "runOnInit" : true ,
21
- "dropDatabase" : true
20
+ "runOnInit" : false ,
21
+ "dropDatabase" : false
22
+ },
23
+ "smtpConfig" : {
24
+ "host" : " 0.0.0.0" ,
25
+ "port" : 1025 ,
26
+ "ignoreTLS" : true
22
27
},
23
28
"mongodb" : " mongodb://localhost:27017/hc_api" ,
24
29
"authentication" : {
Original file line number Diff line number Diff line change 1
1
{
2
- "host" : " localhost" ,
3
- "port" : 3030 ,
4
- "baseURL" : " http://localhost:3030" ,
5
- "frontURL" : " http://localhost:3000" ,
6
- "smtpConfig" : {
7
- "host" : " 0.0.0.0" ,
8
- "port" : 1025 ,
9
- "ignoreTLS" : true
10
- },
11
- "thumbor" : {
12
- "url" : " " ,
13
- "key" : " "
14
- },
15
2
"seeder" : {
16
3
"runOnInit" : true ,
17
4
"dropDatabase" : false
18
- },
19
- "defaultEmail" :
" [email protected] "
5
+ }
20
6
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"port" : 3031 ,
3
3
"baseURL" : " http://localhost:3031" ,
4
- "seeder" : {
5
- "runOnInit" : false ,
6
- "dropDatabase" : false
7
- },
8
- "smtpConfig" : {
9
- "host" : " 0.0.0.0" ,
10
- "port" : 1025 ,
11
- "ignoreTLS" : true
12
- },
13
4
"mongodb" : " mongodb://localhost:27017/hc_api_test"
14
5
}
Original file line number Diff line number Diff line change 2
2
const fs = require ( 'fs-extra' ) ;
3
3
const path = require ( 'path' ) ;
4
4
5
- // setup local env is not available
6
- let configDir = path . resolve ( 'config' ) ;
7
- if ( process . env . NODE_ENV !== 'production' && ! fs . existsSync ( configDir + '/local.json' ) ) {
8
- fs . copySync ( configDir + '/local.example.json' , configDir + '/local.json' ) ;
9
- }
10
-
11
5
const app = require ( './app' ) ;
12
6
const port = app . get ( 'port' ) ;
13
7
const host = app . get ( 'host' ) ;
You can’t perform that action at this time.
0 commit comments