10 lines
260 B
Bash
10 lines
260 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Check if the database file exists
|
||
|
if [ ! -f /app/db/movielist.sqlite ]; then
|
||
|
echo "Initializing database..."
|
||
|
python -m flask --app kinolist init-db
|
||
|
fi
|
||
|
|
||
|
# Start the Flask application
|
||
|
exec gunicorn --bind 0.0.0.0:8000 "kinolist:create_app()"
|