ci: improve first install

This commit is contained in:
Vasily Zubarev
2025-03-20 21:14:30 +01:00
parent 02c4c42c02
commit 33727a431e
5 changed files with 35 additions and 17 deletions

View File

@@ -5,11 +5,9 @@ set -e
echo "Running database migrations..."
npx prisma migrate deploy
# Run database seeding if SEED_DATABASE is set to true
if [ "$SEED_DATABASE" = "true" ]; then
echo "Seeding database..."
npm run seed
fi
# Initialize database
echo "Checking and seeding database if needed..."
npm run seed
# Start the application
echo "Starting the application..."