diff options
| -rw-r--r-- | magefile.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/magefile.go b/magefile.go index b092d74c..9c4a01bc 100644 --- a/magefile.go +++ b/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) } |
