in newswires/project/PlayVite.scala [53:70]
override def afterStarted(): Unit = {
try {
// Try to automatically open app in browser...
if (
0 != Process("open https://newswires.local.dev-gutools.co.uk").!(
devnullLogger
)
) {
throw new Error("opening failed")
}
} catch {
case NonFatal(_) =>
// ... but if it fails log the url so dev can cmd+click
println(
"Started and available at https://newswires.local.dev-gutools.co.uk"
)
}
}