change migration

This commit is contained in:
Jurgis Sakalauskas committed 2023-11-03 11:15:45 +02:00
1 parent 813e8af47f
commit 3ef6f1514f
3 files changed
+5 -1

No files matched your search

+4
View File
@@ -6,12 +6,16 @@ if [ "$NODE_ENV" == "production" ]; then
npm run prebuild
echo "Running build"
npm run build
echo "Running migrations"
npm run typeorm:run-migrations
echo "Starting app"
npm run start:prod
else
echo "Starting app in development mode"
echo "Running prebuild"
npm run prebuild
echo "Running migrations"
npm run typeorm:run-migrations
echo "Starting app"
npm run start:dev
fi