first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
DB_FILE="/app/data/db.sqlite"
|
||||
|
||||
# If DB doesn't exist or is empty, seed it
|
||||
if [ ! -f "$DB_FILE" ] || [ ! -s "$DB_FILE" ]; then
|
||||
echo "Database not found, seeding from schema..."
|
||||
cp /app/seed/db.sqlite "$DB_FILE"
|
||||
fi
|
||||
|
||||
exec node server.js
|
||||
Reference in New Issue
Block a user