You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was writing a quarkus app with quinoa and I wanted to wait until the frontend is available and open it on the default browser as soon as it was.
What I ended up doing is pinging http://localhost:${quarkus.http.port} and then opening the browser. However the frontend never seemed to be ready because my waiting for the frontend was actually delaying the application startup.
I then moved the polling into a ManagedExecutor thread. Maybe it's worth mentioning this in the docs at https://quarkus.io/guides/lifecycle ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
I was writing a quarkus app with quinoa and I wanted to wait until the frontend is available and open it on the default browser as soon as it was.
What I ended up doing is pinging
http://localhost:${quarkus.http.port}
and then opening the browser. However the frontend never seemed to be ready because my waiting for the frontend was actually delaying the application startup.I then moved the polling into a
ManagedExecutor
thread. Maybe it's worth mentioning this in the docs at https://quarkus.io/guides/lifecycle ?Beta Was this translation helpful? Give feedback.
All reactions