You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 1, 2024. It is now read-only.
@@ -81,9 +82,10 @@ func (o serverInputOptions) String() string {
81
82
82
83
funcinit() {
83
84
options:=serverInputOptions{}
84
-
options.port=serverCmd.Flags().Uint16P("port", "p", 8000, "port on which to serve")
85
+
options.port=serverCmd.Flags().Uint16P("port", "p", 8000, "port on which to serve HTTP")
86
+
options.ports=serverCmd.Flags().Uint16P("ports", "P", 8001, "port on which to serve HTTPS (only applicable if tls cert and key provided)")
85
87
options.dev=serverCmd.Flags().Bool("dev", false, "run in dev mode for hot-reloading of JS code")
86
-
options.devAPIPort=serverCmd.Flags().Uint16("dev-api-port", 8001, "port on which to run API server when in dev mode")
88
+
options.devAPIPort=serverCmd.Flags().Uint16("dev-api-port", 8002, "port on which to run API server when in dev mode")
87
89
options.horizonTestnetURI=serverCmd.Flags().String("horizon-testnet-uri", "https://horizon-testnet.stellar.org", "URI to use for the horizon instance connected to the Stellar Test Network (must contain the word 'test')")
88
90
options.horizonPubnetURI=serverCmd.Flags().String("horizon-pubnet-uri", "https://horizon.stellar.org", "URI to use for the horizon instance connected to the Stellar Public Network (must not contain the word 'test')")
89
91
options.noHeaders=serverCmd.Flags().Bool("no-headers", false, "do not use Amplitude or set X-App-Name and X-App-Version headers on requests to horizon")
@@ -409,17 +411,32 @@ func init() {
409
411
// gui.FS is automatically compiled based on whether this is a local or deployment build
410
412
gui.FileServer(r, "/", gui.FS)
411
413
412
-
log.Printf("starting server on port %d\n", *options.port)
0 commit comments