aboutsummaryrefslogtreecommitdiff
path: root/internal/environment/flags.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/environment/flags.go')
-rw-r--r--internal/environment/flags.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/environment/flags.go b/internal/environment/flags.go
index 8250690..bbb7d1a 100644
--- a/internal/environment/flags.go
+++ b/internal/environment/flags.go
@@ -23,8 +23,8 @@ import (
func (env *Environment) setFlags() {
flag.StringVar(&env.ConfigFile, "config", "", "My config file")
- flag.IntVar(&env.Port, "port", 8080, "The port where I'm going to listen")
- flag.StringVar(&env.Domain, "domain", "localhost", "The address where I'm going to listen")
+ flag.StringVar(&env.BindAddr, "bind-addr", "localhost:8081", "The address where I'm going to listen")
+ flag.StringVar(&env.BaseURL, "base-url", "", "The base shoelaces URL. If it's not defined, it will default to bind-addr.")
flag.StringVar(&env.DataDir, "data-dir", "", "Directory with mappings, configs, templates, etc.")
flag.StringVar(&env.StaticDir, "static-dir", "web", "A custom web directory with static files")
flag.StringVar(&env.EnvDir, "env-dir", "env_overrides", "Directory with overrides")
nihil fit ex nihilo