File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,12 @@ jobs:
46
46
sed -i 's@NEW_RELIC_APP_NAME="analytics-reporter-api"@NEW_RELIC_APP_NAME="analytics-reporter-api-develop"@g' entrypoint.sh
47
47
48
48
- run :
49
- name : Delete Knexfile .js and drop sufffix on Knexfile .js.cloudgov
49
+ name : Delete Config .js and drop sufffix on Config .js.cloudgov
50
50
command : |
51
+ rm ./src/config.js
52
+ mv ./src/config.js.cloudgov ./src/config.js
51
53
rm knexfile.js
52
- mv knexfile.js.cloudgov knexfile.js
54
+ mv knexfile.js.cloudgov knexfile.js
53
55
54
56
- run :
55
57
name : Install CF CLI
Original file line number Diff line number Diff line change
1
+ const knexfile = require('../knexfile');
2
+ const VCAP_SERVICES_JSON = JSON.parse(process.env.VCAP_SERVICES);
3
+
4
+ module.exports = {
5
+ api_data_gov_secret: process.env.API_DATA_GOV_SECRET,
6
+ port: process.env.PORT || 4444,
7
+ postgres: {
8
+ host : VCAP_SERVICES_JSON["aws-rds"][0]["credentials"]["host"],
9
+ user : VCAP_SERVICES_JSON["aws-rds"][0]["credentials"]["username"],
10
+ password : VCAP_SERVICES_JSON["aws-rds"][0]["credentials"]["password"],
11
+ database : VCAP_SERVICES_JSON["aws-rds"][0]["credentials"]["db_name"],
12
+ port: 5432,
13
+ ssl : true
14
+ },
15
+ log_level: process.env.LOG_LEVEL || 'info'
16
+ };
17
+
You can’t perform that action at this time.
0 commit comments