Files
Fleetbase-Mirror-Repo/api/deploy.sh
Ronald A. Richardson 095eb87e14 preparing for new release
2024-03-15 17:00:31 +08:00

23 lines
386 B
Bash
Executable File

#!/bin/sh
# Exit the script as soon as a command fails
set -e
# Create mysql databases if none exists
php artisan mysql:createdb
# Run migrations
php artisan migrate --force
# Run migrations for sandbox too
php artisan sandbox:migrate --force
# Seed database
php artisan fleetbase:seed
# Restart queue
php artisan queue:restart
# Sync scheduler
php artisan schedule-monitor:sync