deploy: purge .next before build; CI also restarts Convex service to ensure fresh state
This commit is contained in:
parent
72c0cab07a
commit
2659455a9f
2 changed files with 6 additions and 0 deletions
5
.github/workflows/ci-cd-web-desktop.yml
vendored
5
.github/workflows/ci-cd-web-desktop.yml
vendored
|
|
@ -80,6 +80,11 @@ jobs:
|
|||
run: |
|
||||
docker service update --force sistema_web || true
|
||||
|
||||
- name: (Optional) Restart Convex backend service
|
||||
if: ${{ hashFiles(format('{0}/stack.yml', env.APP_DIR)) != '' }}
|
||||
run: |
|
||||
docker service update --force sistema_convex_backend || true
|
||||
|
||||
convex_deploy:
|
||||
name: Deploy Convex functions
|
||||
needs: [deploy, changes]
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ services:
|
|||
&& pnpm install --frozen-lockfile --prod=false \
|
||||
&& pnpm prisma:generate \
|
||||
&& pnpm exec prisma migrate deploy \
|
||||
&& rm -rf .next \
|
||||
&& pnpm build \
|
||||
&& pnpm start -p 3000"
|
||||
volumes:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue