Skip to content

Commit 11a64d2

Browse files
author
Michael Levin
committed
Setup backload publish in cloud.gov
1 parent abda0d0 commit 11a64d2

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
needs:
5252
- lint
5353
- test
54-
if: github.ref == 'refs/heads/develop'
55-
uses: 18F/analytics-reporter/.github/workflows/deploy.yml@develop
54+
if: github.ref == 'refs/heads/bugfix/backload_ga4_api_data'
55+
uses: 18F/analytics-reporter/.github/workflows/deploy.yml@bugfix/backload_ga4_api_data
5656
with:
5757
ANALYTICS_GA4_CALL_RETRY_COUNT: ${{ vars.ANALYTICS_GA4_CALL_RETRY_COUNT_DEV }}
5858
ANALYTICS_KEY_FILE_NAME: ${{ vars.ANALYTICS_KEY_FILE_NAME }}

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ async function runQueuePublish(options = {}) {
116116

117117
for (const agency of agencies) {
118118
for (const reportConfig of reportConfigs) {
119+
agency.agencyName = agency.agencyName || "";
119120
process.env.AGENCY_NAME = agency.agencyName;
120121
const reportLogger = Logger.initialize(appConfig, reportConfig);
121122
try {

manifest.publisher.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ applications:
99
health-check-type: process
1010
buildpacks:
1111
- nodejs_buildpack
12-
command: (node deploy/backload.js --date 2024-06-19 && echo SUCCESS || echo FAIL) && sleep infinity
12+
command: (node deploy/backload.js --date 2023-10-06 && echo SUCCESS || echo FAIL) && sleep infinity
1313
env:
1414
ANALYTICS_DEBUG: 'true'
1515
ANALYTICS_LOG_LEVEL: ${ANALYTICS_LOG_LEVEL}

src/app_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class AppConfig {
193193
get messageQueueDatabaseConnection() {
194194
const connection =
195195
knexfile[process.env.NODE_ENV || "development"].connection;
196-
return `postgres://${connection.user}:${connection.password}@${connection.host}:${process.env.POSTGRES_PORT}/${process.env.MESSAGE_QUEUE_DATABASE_NAME}${process.env.NODE_ENV == "production" ? "?ssl=true&sslmode=no-verify" : ""}`;
196+
return `postgres://${connection.user}:${connection.password}@${connection.host}/${process.env.MESSAGE_QUEUE_DATABASE_NAME}${process.env.NODE_ENV == "production" ? "?ssl=true" : ""}`;
197197
}
198198

199199
get messageQueueName() {

0 commit comments

Comments
 (0)