Skip to content

Commit

Permalink
fix(back-api): run "prisma generate" correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
spy4x committed Dec 9, 2022
1 parent 66c3a88 commit d62f824
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/back/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN yarn --production --no-lockfile --non-interactive

COPY prisma/* ./prisma/

RUN yarn prisma generate
RUN npx prisma generate

COPY dist/apps/back/api/* ./

Expand Down
2 changes: 1 addition & 1 deletion apps/back/api/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"options": {
"commands": [
"yarn build back-api --prod",
"docker build . -t gcr.io/$PROJECT_ID/$CLOUD_RUN_API_APP_NAME -f apps/back/api/Dockerfile $($IS_LOCAL_MACHINE && echo '--platform linux/amd64' || echo '')",
"docker build . -t gcr.io/$PROJECT_ID/$CLOUD_RUN_API_APP_NAME -f apps/back/api/Dockerfile --platform linux/amd64",
"docker push gcr.io/$PROJECT_ID/$CLOUD_RUN_API_APP_NAME",
"gcloud run deploy $CLOUD_RUN_API_APP_NAME --image gcr.io/$PROJECT_ID/$CLOUD_RUN_API_APP_NAME --update-env-vars PROJECT_ID=$PROJECT_ID,REGION=$REGION,DB_CONNECTION_STRING=$DB_CONNECTION_STRING,WEBSITE_URL=$WEBSITE_URL,API_KEY_CLOUD_TASKS=$API_KEY_CLOUD_TASKS --platform managed --region $REGION --allow-unauthenticated --project=$PROJECT_ID --service-account=cloud-run-api@$PROJECT_ID.iam.gserviceaccount.com --set-cloudsql-instances=$PROJECT_ID:$REGION:$CLOUD_SQL_INSTANCE_NAME --max-instances=5 --memory=512M --cpu=1 --timeout=5s --concurrency=100"
],
Expand Down

0 comments on commit d62f824

Please sign in to comment.