diff --git a/bin/deploy.sh b/bin/deploy.sh index 9b65f999..cfc626a2 100755 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -28,7 +28,7 @@ if [[ ${KUBE_NAMESPACE} == ${BRANCH_ENV} ]]; then $kd -f kube/configmaps/configmap.yml -f kube/certs $kd -f kube/file-vault/file-vault-ingress.yml -f kube/html-pdf $kd -f kube/redis -f kube/hof-rds-api -f kube/file-vault - $kd -f kube/app -f + $kd -f kube/app -f kube/cron $kd -f kube/autoscale/hpa-acrs.yml elif [[ ${KUBE_NAMESPACE} == ${UAT_ENV} ]]; then $kd -f kube/configmaps/configmap.yml @@ -40,7 +40,7 @@ elif [[ ${KUBE_NAMESPACE} == ${STG_ENV} ]]; then $kd -f kube/configmaps/configmap.yml $kd -f kube/file-vault/file-vault-ingress.yml -f kube/html-pdf $kd -f kube/hof-rds-api -f kube/redis -f kube/file-vault - $kd -f kube/app -f + $kd -f kube/app $kd -f kube/autoscale/hpa-acrs.yml elif [[ ${KUBE_NAMESPACE} == ${PROD_ENV} ]]; then $kd -f kube/configmaps/configmap.yml -f kube/app/service.yml diff --git a/config.js b/config.js index aa172e0a..a0ad9e09 100644 --- a/config.js +++ b/config.js @@ -25,7 +25,7 @@ module.exports = { }, saveService: { postgresDateFormat: 'YYYY-MM-DD HH:mm:ss', - port: process.env.DATASERVICE_SERVICE_PORT_HTTPS, + port: process.env.DATASERVICE_SERVICE_PORT_HTTPS || '3000', host: process.env.DATASERVICE_SERVICE_HOST && `https://${process.env.DATASERVICE_SERVICE_HOST}` || 'http://127.0.0.1' }, diff --git a/services/reports/reports.js b/services/reports/reports.js index aa608cad..45357f0c 100644 --- a/services/reports/reports.js +++ b/services/reports/reports.js @@ -32,6 +32,8 @@ module.exports = class Reports { this.type = opts.type; this.tableName = opts.tableName; this.tableUrl = `${baseUrl}/${opts.tableName}`; + // eslint-disable-next-line no-console + console.log('tableUrl: ' + this.tableUrl); this.from = opts.from; this.to = opts.to || moment().format(postgresDateFormat); } @@ -65,7 +67,8 @@ module.exports = class Reports { async getRecordsWithProps(opts) { const props = opts || {}; let url = `${this.tableUrl}/history`; - + // eslint-disable-next-line no-console + console.log('url: ' + url); props.from = this.from; props.to = this.to;