Skip to content

Commit

Permalink
Merge pull request #605 from dbarzin/dev
Browse files Browse the repository at this point in the history
fix dicker migration
  • Loading branch information
dbarzin authored Jan 22, 2024
2 parents b12568c + beaf3c9 commit a811ab4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ nodaemon=true

[program:migrate]
command=/bin/sh -c '
php artisan passport:install;
php artisan migrate --force;
if [ ! -s ${DB_DATABASE} ];
then
php artisan db:seed --force;
php artisan passport:install;
php artisan migrate --seed --force;
else
php artisan migrate --force;
fi;
touch /tmp/migrated'
autorestart=false
Expand Down

0 comments on commit a811ab4

Please sign in to comment.