Deploy to Railway
-
Create a Railway account. The referral link supports Gemwright.
-
Install and sign in to the Railway CLI. Gemwright uses it and never installs or upgrades it for you.
Terminal window npm install --global @railway/clirailway login -
Deploy from the shard directory.
Terminal window gemwright shard deploy --target railway --files ~/uoThe first deploy creates a Railway project, records it in
.gemwright/railway.json, and adds a TCP proxy for port 2593 that native clients connect to.
Add components the same way:
# the server and the browser clientgemwright shard deploy --server --client --files ~/uo
# AI residents; the server is rebuilt once with the AI patchgemwright shard deploy --server --ai --files ~/uoWith sphere.mysql on, deploy adds a MySQL service to the same project and passes its connection details to the server.
Railway services are started and stopped from the Railway dashboard; status, logs, pull and restore work as on any target.
Login hostname
Section titled “Login hostname”To give players a name such as login.yourshard.com, add a CNAME record pointing at the TCP proxy hostname.
