Cache when running
All checks were successful
Push image to registry / build-image (push) Successful in 3m46s
All checks were successful
Push image to registry / build-image (push) Successful in 3m46s
This commit is contained in:
@@ -80,10 +80,6 @@ RUN echo "* * * * * cd /usr/app && php artisan schedule:run >> /dev/null 2>&1" >
|
|||||||
# Link the storage directory to the public directory.
|
# Link the storage directory to the public directory.
|
||||||
RUN php artisan storage:link
|
RUN php artisan storage:link
|
||||||
|
|
||||||
# Laravel optimization commands
|
|
||||||
# RUN php artisan cache:clear
|
|
||||||
RUN php artisan config:clear && php artisan config:cache && php artisan route:cache
|
|
||||||
|
|
||||||
RUN chmod +x ./dockerEntryPoint.sh
|
RUN chmod +x ./dockerEntryPoint.sh
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# Migrate the database
|
# Migrate the database
|
||||||
php ./artisan migrate --force
|
php ./artisan migrate --force
|
||||||
|
|
||||||
|
# Cache
|
||||||
|
php ./artisan optimize:clear && php ./artisan optimize
|
||||||
|
|
||||||
# Queue worker
|
# Queue worker
|
||||||
php ./artisan queue:work --queue=high,default --tries=3 --timeout=90 --sleep=3 --daemon --no-interaction &
|
php ./artisan queue:work --queue=high,default --tries=3 --timeout=90 --sleep=3 --daemon --no-interaction &
|
||||||
|
|||||||
Reference in New Issue
Block a user