Fix AFFiNE init container migration command for v0.26.0
The stable image removed scripts/self-host-predeploy.js. Use the new predeploy flow: prisma migrate + dist/main.js run. [ci skip]
This commit is contained in:
parent
24469f4590
commit
c4e4aa25d0
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ resource "kubernetes_deployment" "affine" {
|
|||
init_container {
|
||||
name = "migration"
|
||||
image = "ghcr.io/toeverything/affine:stable"
|
||||
command = ["sh", "-c", "node ./scripts/self-host-predeploy.js"]
|
||||
command = ["sh", "-c", "npx prisma migrate deploy && SERVER_FLAVOR=script node ./dist/main.js run"]
|
||||
|
||||
dynamic "env" {
|
||||
for_each = local.common_env
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue