Skip to content

Commit

Permalink
Add migrate and init-db run modes
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltrolezi committed Oct 7, 2024
1 parent 71541fb commit a1a2cde
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ case "$RUN_MODE" in
notif)
php artisan app:dispatch-notifications
;;
migrate)
php artisan migrate
;;
init-db)
php artisan migrate --seed
;;
*)
echo "Invalid RUN_MODE. Please set it to 'octane' or 'notif'."
exit 1
Expand Down

0 comments on commit a1a2cde

Please sign in to comment.