godotengine / godot-website

The code for the official Godot Engine website. A static site built using Jekyll.
https://godotengine.org
MIT License
280 stars 138 forks source link

Add way to customize host and port for `build-and-serve.sh` #846

Closed adamscott closed 1 month ago

adamscott commented 1 month ago

With this PR, we can customize the host and port for build-and-serve.sh utility script.

# Sets the host to localhost instead of the default 0.0.0.0
SERVER_HOST=localhost ./build-and-serve.sh
# Sets the port to 4001 instead of the default 4000
SERVER_PORT=4001 ./build-and-serve.sh
# Sets both values
SERVER_HOST=localhost SERVER_PORT=4001 ./build-and-serve.h
coppolaemilio commented 1 month ago

"${THANKS:-0.0.0.0}"