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

Run database migration on server startup independently #125

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shivam-sharma7
Copy link
Member

Run migration on server startup independently

fixes: #111

@shivam-sharma7 shivam-sharma7 changed the title Run migration on server startup independently Run database migration on server startup independently Sep 9, 2024
@shivam-sharma7 shivam-sharma7 force-pushed the issue_111 branch 2 times, most recently from 0ae99e8 to b5fc7a2 Compare September 9, 2024 14:44
@shivam-sharma7 shivam-sharma7 force-pushed the issue_111 branch 4 times, most recently from 38b1be8 to 74f51d7 Compare September 16, 2024 16:37
server/db/migration.ts Outdated Show resolved Hide resolved
@rjsamra
Copy link
Collaborator

rjsamra commented Nov 11, 2024

Can you try this out in prod? Run yarn build and then yarn preview. And see if migrations work. Reason is, those files might not be present in production build.

@shivam-sharma7
Copy link
Member Author

Can you try this out in prod? Run yarn build and then yarn preview. And see if migrations work. Reason is, those files might not be present in production build.

yes, i can't see in production but i developed with docker compose and it is working in docker compose

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

Successfully merging this pull request may close these issues.

Run migration on server startup independently.
3 participants