mirror of
https://github.com/fleetbase/fleetbase.git
synced 2025-12-19 14:18:57 +00:00
40 lines
689 B
Bash
Executable File
40 lines
689 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
|
|
|
|
# Create permissions, policies, and roles
|
|
php artisan fleetbase:create-permissions
|
|
|
|
# Restart queue
|
|
php artisan queue:restart
|
|
|
|
# Sync scheduler
|
|
php artisan schedule-monitor:sync
|
|
|
|
# Clear cache
|
|
php artisan cache:clear
|
|
php artisan route:clear
|
|
|
|
# Optimize
|
|
php artisan config:cache
|
|
php artisan route:cache
|
|
|
|
# Initialize registry
|
|
php artisan registry:init
|
|
|
|
# Restart octane
|
|
# php artisan octane:reload
|