diff --git a/commands/dispatch.go b/commands/dispatch.go index 8db5853e..3fcaf6e7 100644 --- a/commands/dispatch.go +++ b/commands/dispatch.go @@ -42,6 +42,9 @@ var rootCmd = &cobra.Command{ }, Run: func(cmd *cobra.Command, args []string) { + if viper.GetBool("dev") { + log.Println("Running in development mode, access client at http://localhost:3000") + } log.Println("Storing data at", storage.Path.Root()) storage.Open() diff --git a/server/server.go b/server/server.go index 0712868c..cc98a40f 100644 --- a/server/server.go +++ b/server/server.go @@ -88,6 +88,8 @@ func startHTTP() { } } else { if viper.GetBool("dev") { + // The node dev server will proxy index page requests and + // websocket connections to this port port = "1337" } log.Println("[HTTP] Listening on port", port)