File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,11 @@ 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 knexfile.js
52
- mv knexfile.js.cloudgov knexfile.js
51
+ rm ./src/config.js
52
+ mv ./src/config.js.cloudgov ./src/config.js
53
+
53
54
54
55
- run :
55
56
name : Install CF CLI
Original file line number Diff line number Diff line change
1
+ const knexfile = require('../knexfile');
2
+
3
+ module.exports = {
4
+ api_data_gov_secret: process.env.API_DATA_GOV_SECRET,
5
+ port: process.env.PORT || 4444,
6
+ postgres: {
7
+ host : VCAP_SERVICES_JSON["aws-rds"][0]["credentials"]["host"],
8
+ user : VCAP_SERVICES_JSON["aws-rds"][0]["credentials"]["username"],
9
+ password : VCAP_SERVICES_JSON["aws-rds"][0]["credentials"]["password"],
10
+ database : VCAP_SERVICES_JSON["aws-rds"][0]["credentials"]["db_name"],
11
+ port: 5432,
12
+ ssl : true
13
+ },
14
+ log_level: process.env.LOG_LEVEL || 'info'
15
+ };
16
+
You can’t perform that action at this time.
0 commit comments