Skip to content

Commit

Permalink
Merge pull request #310 from masslight/aykhan/deploy-env-fix
Browse files Browse the repository at this point in the history
Deploy env variable fix
  • Loading branch information
AykhanAhmadli authored Aug 9, 2024
2 parents c52e634 + 309d050 commit 9d22a70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/telemed-ehr/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"preview": "vite preview --port 4002",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"build": "tsc && vite build",
"build:dev": "tsc && vite build --mode dev",
"build:development": "ENV=development npm run build-skeleton",
"build:testing": "ENV=testing npm run build-skeleton",
"build:staging": "ENV=staging npm run build-skeleton",
Expand All @@ -29,7 +30,7 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"deploy:dev": " PREFIX=development CLOUDFRONT_ID=E10TA6FN58D1OS ENV=dev 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 && 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: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"
},
"dependencies": {
"@mui/icons-material": "^5.14.9",
Expand Down Expand Up @@ -60,4 +61,4 @@
"@types/styled-components": "^5.1.34",
"@types/react-page-visibility": "^6.4.4"
}
}
}
3 changes: 2 additions & 1 deletion packages/telemed-intake/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"type": "module",
"scripts": {
"start:local": "vite",
"build:dev": "tsc && vite build --mode dev",
"build": "tsc && vite build",
"deploy:dev": "PREFIX=development CLOUDFRONT_ID=EIYX001DGGQK8 ENV=dev 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 && 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: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"
},
"dependencies": {
"@mui/x-date-pickers": "^7.7.0",
Expand Down

0 comments on commit 9d22a70

Please sign in to comment.