mirror of
https://github.com/sstent/GarminSync.git
synced 2026-01-27 01:21:40 +00:00
working again
This commit is contained in:
16
entrypoint.sh
Normal file
16
entrypoint.sh
Normal 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
|
||||
Reference in New Issue
Block a user