trepa/scripts/startup.sh
2025-02-20 12:09:38 +00:00

10 lines
No EOL
189 B
Bash

#!/bin/bash
#Start cron service (Debian)
service cron start
# Wait for the database to be ready
./migrate -source file://migrations/ -database "$DATABASE_URL" up
# Run the API
./dist/api