Skip to content

Commit

Permalink
Merge pull request #504 from masslight/fix-secrets
Browse files Browse the repository at this point in the history
Fix deploys
  • Loading branch information
GiladSchneider authored Oct 22, 2024
2 parents 53c6114 + 7df6d31 commit 13a239e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/telemed-ehr/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"deploy:development": " PREFIX=development CLOUDFRONT_ID=E10TA6FN58D1OS ENV=development pnpm run ci-deploy-skeleton",
"ci-deploy-skeleton": "ENV=${ENV} VITE_APP_SHA=${GIT_HEAD:-$(git rev-parse --short HEAD)} VITE_APP_VERSION=$(node -pe 'require(\"./package.json\").version') pnpm run build:dev && aws s3 sync build/ s3://ehr.ottehr.com --region us-east-1 --delete && aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_ID} --paths '/*' --region us-east-1"
"ci-deploy-skeleton": "ENV=${ENV} VITE_APP_SHA=${GIT_HEAD:-$(git rev-parse --short HEAD)} VITE_APP_VERSION=$(node -pe 'require(\"./package.json\").version') pnpm run build:${ENV} && aws s3 sync build/ s3://ehr.ottehr.com --region us-east-1 --delete --profile ottehr && aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_ID} --paths '/*' --region us-east-1"
},
"dependencies": {
"@mui/icons-material": "^5.14.9",
Expand Down
4 changes: 2 additions & 2 deletions packages/telemed-intake/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"type": "module",
"scripts": {
"start:local": "vite",
"build:dev": "tsc && vite build --mode dev",
"build:development": "tsc && vite build --mode development",
"build": "tsc && vite build",
"deploy:development": "ENV=development PREFIX=development CLOUDFRONT_ID=EIYX001DGGQK8 pnpm run ci-deploy-skeleton",
"ci-deploy-skeleton": "ENV=${ENV} VITE_APP_SHA=${GIT_HEAD:-$(git rev-parse --short HEAD)} VITE_APP_VERSION=$(node -pe 'require(\"./package.json\").version') pnpm run build:dev && aws s3 sync build/ s3://telemed.ottehr.com --region us-east-1 --delete && aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_ID} --paths '/*' --region us-east-1"
"ci-deploy-skeleton": "ENV=${ENV} VITE_APP_SHA=${GIT_HEAD:-$(git rev-parse --short HEAD)} VITE_APP_VERSION=$(node -pe 'require(\"./package.json\").version') pnpm run build:${ENV} && aws s3 sync build/ s3://telemed.ottehr.com --region us-east-1 --delete && aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_ID} --paths '/*' --region us-east-1"
},
"dependencies": {
"@mui/x-date-pickers": "^7.7.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/telemed-intake/zambdas/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ functions:
environment:
WEBSITE_URL: ${file(./.env/${self:provider.stage}.json):WEBSITE_URL}
AUTH0_ENDPOINT: ${file(./.env/${self:provider.stage}.json):AUTH0_ENDPOINT}
AUTH0_CLIENT: ${file(./.env/${self:provider.stage}.json):TELEMED_CLIENT_ID}
AUTH0_SECRET: ${file(./.env/${self:provider.stage}.json):TELEMED_CLIENT_SECRET}
TELEMED_CLIENT_ID: ${file(./.env/${self:provider.stage}.json):TELEMED_CLIENT_ID}
TELEMED_CLIENT_SECRET: ${file(./.env/${self:provider.stage}.json):TELEMED_CLIENT_SECRET}
AUTH0_AUDIENCE: ${file(./.env/${self:provider.stage}.json):AUTH0_AUDIENCE}
ORGANIZATION_ID: ${file(./.env/${self:provider.stage}.json):ORGANIZATION_ID}
FHIR_API: ${file(./.env/${self:provider.stage}.json):FHIR_API}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const index = async (input: ZambdaInput): Promise<APIGatewayProxyResult>

console.log('Send cancel message request');
if (!zapehrMessagingToken) {
zapehrMessagingToken = await getAccessToken(secrets, 'regular');
zapehrMessagingToken = await getAccessToken(secrets, 'messaging');
}
const WEBSITE_URL = getSecret(SecretsKeys.WEBSITE_URL, secrets);
const message = `Your visit for ${getPatientFirstName(patient)} with Ottehr Urgent Care ${
Expand Down

0 comments on commit 13a239e

Please sign in to comment.