Skip to content

Commit

Permalink
fix passport in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Jan 22, 2024
1 parent 604681d commit 798c95a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ RUN set -ex ; \
# Publish Laravel Vendor resources
RUN php artisan vendor:publish --all

# Install passport
RUN php artisan passport:install

EXPOSE 8000

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
1 change: 1 addition & 0 deletions docker/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ nodaemon=true

[program:migrate]
command=/bin/sh -c '
php artisan passport:install;
php artisan migrate --force;
if [ ! -s ${DB_DATABASE} ];
then
Expand Down

0 comments on commit 798c95a

Please sign in to comment.