Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
TNAJanssen opened this issue Oct 9, 2023 · 2 comments
Open
2 tasks done

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

TNAJanssen opened this issue Oct 9, 2023 · 2 comments

Comments

@TNAJanssen
Copy link
Contributor

TNAJanssen commented Oct 9, 2023

📜 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/[email protected] 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?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

Yes I am willing to submit a PR!

NV-3045

@github-actions github-actions bot added the triage label Oct 9, 2023
@p-fernandez p-fernandez changed the title 🐛 Bug Report: can't run migration when using docker [NV-3045] 🐛 Bug Report: can't run migration when using docker Oct 19, 2023
@TNAJanssen
Copy link
Contributor Author

When can i expect a update for this?

@scopsy
Copy link
Contributor

scopsy commented Nov 26, 2023

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 :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants