Files
Fleetbase-Mirror-Repo/api/deploy.sh
Eugene Dementyev 8de660d51a Fix the deploy script. Change the cd accordingly.
Reformat the action file
2024-02-04 19:27:20 +13:00

20 lines
334 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