novuhq / novu

Open-Source Notification Platform. Embeddable Notification Center, E-mail, Push and Slack Integrations.
https://novu.co
Other
34.47k stars 3.51k forks source link

[NV-3045] 🐛 Bug Report: can't run migration when using docker #4464

Open TNAJanssen opened 11 months ago

TNAJanssen commented 11 months ago

📜 Description

Whe i try to run the migration on docker i get a error message

👟 Reproduction steps

Deploy using docker Run migration

👍 Expected behavior

Run migration

👎 Actual Behavior with Screenshots

@novu/api@0.19.0 migration:primary-provider cross-env NODE_ENV=local MIGRATION=true ts-node --transpileOnly ./migrations/integration-scheme-update/add-primary-priority-migration.ts

Error: Cannot find module '../../src/config'

Novu version

0.19.0

npm version

No response

node version

No response

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

Yes I am willing to submit a PR!

NV-3045

TNAJanssen commented 10 months ago

When can i expect a update for this?

scopsy commented 9 months ago

Hi @TNAJanssen at the moment we won't allow running migrations from the docker image directly. For now the only way for running migrations would be to clone the repository inside a server and running the migration from there. Internally we use an ECS ephemeral task for those type of usecases.

The team is planning on finding a better solution for this flow, but at the moment we do not have capacity for this :(