Skip to content

Commit

Permalink
fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Jan 22, 2024
1 parent bac7713 commit 604681d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docker/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ nodaemon=true

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

0 comments on commit 604681d

Please sign in to comment.