Typeorm migration run
hey guys i hvae this issue with when my migrations are being synced/generated it some how fails and wont run due to there no migration being generated ( which is okay, dont make if cant find ) but for some reason when it hits the
migration:run
the app starts over from zero again -.-Solution:Jump to solution
change the
&&
to a semicolon after the command that is exiting with 1 instead of 023 Replies
Project ID:
51cb3e5e-013d-43eb-b545-600daa26b09f
51cb3e5e-013d-43eb-b545-600daa26b09f
full deploy logs please - https://bookmarklets.up.railway.app/log-downloader/
this is the eye catchin part ^^
also this
it finds the entites no problem but then ofc no migrations are suppose to be found since it up to date which is fine
Solution
change the
&&
to a semicolon after the command that is exiting with 1 instead of 0`
like this?
that's not a semicolon
sorry ahhahahaahah
"start": "sleep 3 && tsc && pnpm run sync; pnpm run migrate:run && pnpm sentry:sourcemaps && node ./build/index.js",
OH AFTER
sorry
yep
that's just a quick work around, the correct solution would be to have the migration command exit with 0 if there are no migrations to run
how would i do that
that would kinda be out of scope as it wouldn't have anything to do with the platform or running your app on the platform
I'm sure you could find some information about what I've said, I'm just trying to get you running and then point you in the correct direction
my man let me se if it works
nope still failing to launch
deploy logs please
shall i do same for sync maybe
give it a try
ye just did its deploying
this, I replied to the wrong message
works!!!
thanks
no problem!