Docker and more calendar work
This commit is contained in:
parent
4527504c80
commit
f7a919ebf2
22 changed files with 2036 additions and 79 deletions
17
docker-entrypoint.sh
Normal file
17
docker-entrypoint.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Create necessary directories
|
||||
mkdir -p instance downloads
|
||||
|
||||
# Check if the database needs to be initialized
|
||||
if [ ! -f instance/podcastrr.db ]; then
|
||||
echo "Initializing database..."
|
||||
python init_db.py
|
||||
else
|
||||
echo "Database already exists, checking for migrations..."
|
||||
python run_migrations.py
|
||||
fi
|
||||
|
||||
# Start the application
|
||||
exec python main.py
|
Loading…
Add table
Add a link
Reference in a new issue