Files
Cinderwild/server/run_server.sh

17 lines
634 B
Bash
Executable File

#!/bin/sh
# Starts a dedicated Emberwild server (no window, no local player).
#
# server/run_server.sh defaults from server.json
# server/run_server.sh --port 24242 --server-name "Paul's island" --password secret
#
# Any flags are passed to the server (see docs/MULTIPLAYER_PLAN.md §2).
# Set GODOT=/path/to/godot to use a particular Godot. Stop it with Ctrl+C.
#
# Before starting it checks that Godot is 4.7 or newer, and imports a fresh
# copy of the project once (tools/godot_env.sh).
cd "$(dirname "$0")/.." || exit 1
. tools/godot_env.sh
exec "$GODOT" --headless --path . -- --server --console "$@"