develop #12
@@ -1,11 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Wait for database to be ready
|
# Initialize database if it doesn't exist or schema changed
|
||||||
echo "Initializing database..."
|
echo "Checking database..."
|
||||||
|
|
||||||
# Apply migrations / create database schema
|
# Create data directory if it doesn't exist
|
||||||
npx prisma db push --skip-generate
|
mkdir -p /app/data
|
||||||
|
|
||||||
|
# Push schema (safe - won't overwrite data, only syncs schema)
|
||||||
|
npx prisma db push --skip-generate --skip-pull
|
||||||
|
|
||||||
echo "Starting application..."
|
echo "Starting application..."
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user