working again

This commit is contained in:
2025-08-22 05:41:12 -07:00
parent 837bda1706
commit 9c4e652047
6 changed files with 396 additions and 0 deletions

16
entrypoint.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Run database migrations
echo "Running database migrations..."
export ALEMBIC_CONFIG=./migrations/alembic.ini
export ALEMBIC_SCRIPT_LOCATION=./migrations/versions
alembic upgrade head
if [ $? -ne 0 ]; then
echo "Migration failed!" >&2
exit 1
fi
# Start the application
echo "Starting application..."
exec python -m garminsync.cli daemon --start
sleep infinity