update for deployment to fix public storage not found

This commit is contained in:
Jack Goh
2018-07-26 23:41:35 +08:00
parent 8d450fb65e
commit a3aee3e152
2 changed files with 5 additions and 4 deletions
+3 -1
View File
@@ -13,5 +13,7 @@ RUN php artisan clear-compiled
COPY wait.sh /usr/local/bin/wait.sh
RUN chmod +x /usr/local/bin/wait.sh
CMD /usr/local/bin/wait.sh && composer update --no-scripts && composer dumpautoload && php artisan storage:link && php artisan migrate && php artisan serve --host=0.0.0.0 --port=8000
RUN php artisan storage:link
CMD /usr/local/bin/wait.sh && composer update --no-scripts && composer dumpautoload && php artisan migrate && php artisan serve --host=0.0.0.0 --port=8000
EXPOSE 8000
+2 -3
View File
@@ -1,7 +1,6 @@
# Docs: https://caddyserver.com/docs/caddyfile
https://exchange-staging.izyim.com {
root /var/www/public
fastcgi / 127.0.0.1:9000 php {
fastcgi / 127.0.0.1:8000 php {
index index.php
}
@@ -14,7 +13,7 @@ https://exchange-staging.izyim.com {
to /index.php?{query}
}
gzip
browse
# browse
log stdout
errors stdout
on startup php-fpm --nodaemonize