Skip to content

Commit

Permalink
build: updating deploy ton run migrations on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias committed Jan 19, 2024
1 parent c744a67 commit c53a1cf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions kubernetes/backend/pycount-backend-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,13 @@ spec:
envFrom:
- configMapRef:
name: pycount-database-conf
lifecycle:
postStart:
exec:
# Lance la migration
command:
[
"/bin/sh",
"-c",
"node ace migration:run --force",
]

0 comments on commit c53a1cf

Please sign in to comment.