16 lines
332 B
Bash
16 lines
332 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Initialize database if it doesn't exist or schema changed
|
|
echo "Checking database..."
|
|
|
|
# Create data directory and set proper permissions
|
|
mkdir -p /app/data
|
|
chmod 755 /app/data
|
|
|
|
# Use local prisma version from node_modules
|
|
./node_modules/prisma/build/index.js db push
|
|
|
|
echo "Starting application..."
|
|
exec "$@"
|