Skip to content

Deploy to Railway

  1. Create a Railway account. The referral link supports Gemwright.

  2. 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/cli
    railway login
  3. Deploy from the shard directory.

    Terminal window
    gemwright shard deploy --target railway --files ~/uo

    The 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:

Terminal window
# the server and the browser client
gemwright shard deploy --server --client --files ~/uo
# AI residents; the server is rebuilt once with the AI patch
gemwright shard deploy --server --ai --files ~/uo

With 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.

To give players a name such as login.yourshard.com, add a CNAME record pointing at the TCP proxy hostname.