Skip to content

Commit

Permalink
fix: broken build for 7.0.0
Browse files Browse the repository at this point in the history
Due to a change in Laravel 10, an app without a .env file now yields a
500 error. As we expect http://localhost/ to return 200, this change
    broke the build. To ensure the HTTP server work, we only need to
    check for a static image (sw.js).
  • Loading branch information
phanan committed Jul 10, 2024
1 parent ee21963 commit 5e1debe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ EXPOSE 80

# Check that the homepage is displayed
HEALTHCHECK --interval=5m --timeout=5s \
CMD curl -f http://localhost/ || exit 1
CMD curl -f http://localhost/sw.js || exit 1
7 changes: 4 additions & 3 deletions goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ file:
owner: www-data
group: www-data
filetype: file
contains:
contents:
- v7.0.0
/var/www/html/artisan:
exists: true
Expand Down Expand Up @@ -88,6 +88,7 @@ port:
service:
apache2:
enabled: true
skip: false
running: true
user:
www-data:
Expand All @@ -113,10 +114,10 @@ process:
apache2:
running: true
http:
http://localhost:
http://localhost/sw.js:
status: 200
allow-insecure: false
no-follow-redirects: false
timeout: 5000
body:
- <title>Koel</title>
- workbox

0 comments on commit 5e1debe

Please sign in to comment.