Commit 08f42d3
Changed files (1)
magefile.go
@@ -24,7 +24,12 @@ func RunSp() error {
return sh.RunV("ruby", "./bin/sp")
}
+// Open a web browser to the login page
+func Browser() error {
+ return sh.RunV("xdg-open", "http://localhost:8283/sessions/new")
+}
+
// Run All the servers
func Run(ctx context.Context) {
- mg.CtxDeps(ctx, RunIdp, RunSp)
+ mg.CtxDeps(ctx, RunIdp, RunSp, Browser)
}