Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit afdcba2

Browse files
committed
chore: add cross-env to Dockerfile and simplify AWS deployment command for API migration
1 parent 30bf75b commit afdcba2

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.deploy/dependencies/api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ENV PYTHON=/usr/bin/python
99

1010
RUN apk --update add bash \
1111
&& apk add --no-cache build-base \
12-
&& npm i -g npm@9 node-gyp@10.2.0 yarn --force \
12+
&& npm i -g npm@9 node-gyp@10.2.0 yarn cross-env --force \
1313
&& mkdir /srv/gauzy \
1414
&& chown -R node:node /srv/gauzy \
1515
&& rm -rf /var/cache/apk/*

.github/workflows/aws-deploy-api.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,11 @@ jobs:
242242
-e DB_PASS="${{ env.DB_PASS }}" \
243243
-e DB_SSL_MODE="${{ env.DB_SSL_MODE }}" \
244244
-e DB_POOL_SIZE="${{ env.DB_POOL_SIZE }}" \
245-
-e NODE_ENV="development" \
246-
-e NODE_OPTIONS="--max-old-space-size=12288" \
245+
-e NODE_ENV="${{ env.NODE_ENV }}" \
247246
-v ${{ github.workspace }}:/workspace \
248247
-w /workspace \
249248
${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY_DEPENDENCIES }}:latest-api-dev \
250-
sh -c "yarn run build:package:api && yarn ts-node -r tsconfig-paths/register --project apps/api/tsconfig.app.json ./apps/api/src/migration.ts migration:run"
249+
sh -c "yarn migration:run"
251250
252251
deploy-api:
253252
name: Deploy API to AWS

0 commit comments

Comments
 (0)