Skip to content

Commit

Permalink
add migrate script to run by cloudbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
CrysR committed Dec 19, 2024
1 parent 83580df commit 580dbf1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions db-migrate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

composer install

php artisan optimize:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache

# Run Laravel migration (by force, since it would be a prod-environment)
php artisan migrate --force

0 comments on commit 580dbf1

Please sign in to comment.