Skip to content

Commit

Permalink
Test running migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltrolezi committed Oct 8, 2024
1 parent 495b15d commit a98ff58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ RUN if [ "$APP_ENV" = "local" ]; then \
apt-get update && apt-get install -y nano npm; \
fi

RUN if [ "$APP_ENV" = "production" ]; then \
composer install --no-interaction --optimize-autoloader --no-dev; \
fi
#RUN if [ "$APP_ENV" = "production" ]; then \
# composer install --no-interaction --optimize-autoloader --no-dev; \
# fi

#RUN find /var/www/gamewatch -not -path "/var/www/gamewatch/vendor/*" -type f -exec chmod 644 {} \; \
# && find /var/www/gamewatch -type d -exec chmod 755 {} \; \
Expand Down
3 changes: 3 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ if [ ! -d "vendor" ] || [ -z "$(ls -A vendor)" ]; then

php artisan key:generate --ansi
php artisan migrate --seed
else
composer install --no-interaction --optimize-autoloader
php artisan migrate --seed
fi
fi

Expand Down

0 comments on commit a98ff58

Please sign in to comment.