-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix first-time run of docker_dev.sh
#11779
Conversation
what should be done is adding health check on assets service, checking for existence of the manifest file. |
I'll take a look into that. |
docker_dev.sh
docker_dev.sh
Hmm, looks like things break if I just use health checks... I think
|
maybe add a compose install before the yarn install in the watch command |
Yep, that seems to work. Let me know if you were thinking of a different approach. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking again at how the service is actually used, maybe just monitor for the file (with a while loop) inside the octane specific entrypoint function instead
(also, moving the composer install before setting up github token for it is bad)
Were you thinking of something like this latest change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also please squash the commits
What's wrong with putting an empty |
that's a good point 🤔 |
d538bea
to
12fa440
Compare
Here's an alternative PR: Either work, it just depends on the UX you're looking for when starting (either getting served nothing, or an error page during startup). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's just go with this one for now (there's different problem with the other one in its current state and I would probably take a different approach)
Sounds good! Thank you for being patient with me. |
What are these changes?
This change makes octane commands wait a bit for
manifest.json
to exist if it's missing.Why are these changes being made?
The first run of
bin/docker_dev.sh
causes bothnginx
andphp-dusk
fail.php:
php-dusk:
nginx:
Successive runs pass and serve the website, suggesting a race condition in
docker compose up
. Runningdocker compose run --rm assets
beforehand seems to fix this.