definewaterHOBBY
10 months ago
Hello everyone i have been trying for ours trying to get my typeorm mirgrations to run it has access to the database because it created a "migrations" table BUT it wont go in and generate the nessecary migrations and apply them sadly. and i get no error!
there are my scripts
"scripts": {
"start": "sleep 3 && tsc && pnpm run sync && pnpm run migrate:run && node ./build/index.js",
"sync": "pnpm typeorm migration:generate /app/build/migration/Init -o -d /app/build/data-source.js",
"migrate:run": "pnpm typeorm migration:run -d /app/build/data-source.js",
"typeorm": "npx typeorm-ts-node-commonjs"
},
0 Replies
10 months ago
does the app ever actually start? since you chain the commands with &&
these are deploy settings all standard have not touched anything in here
10 months ago
does typeorm have a debug mode or something, because without error messages I'm honestly not sure what I could do for you since I don't have any ideas at the moment
10 months ago
no problem!
10 months ago
thank you very much, I appreciate it!
10 months ago
only mods/admins can do that