Akkadius / spire

[Spire] A rich, portable server editing and development toolkit for EverQuest Emulator servers
https://github.com/Akkadius/spire
50 stars 12 forks source link

[Config] Allow Spire Web to be configured #112

Closed Akkadius closed 1 year ago

Akkadius commented 1 year ago

This PR allows Spire's HTTP server to be additionally configured in two more places.

Currently, you can run

./spire http:serve --port=x

To run Spire's web services on a specific port. This does not go through the traditional booting mechanisms when Spire is ran on a fully installed server. The default mechanism also chooses a random range 8090 through 8099 which is commonly used on desktop machines and also used when Spire is ran with no arguments

This PR allows you to be able to specify a default port through

For example

SPIRE_HTTP_PORT=3001 go run main.go

Results in

... truncated
 A rich, portable server editing and development toolkit for EverQuest Emulator servers

⇨ http server started on [::]:3001