Skip to content
ShipVoice
Pro

Railway

Goal: a whole install online in one Railway project, with a public address for the console.

One Railway project holding the console, the Control Plane, the voice worker, a Postgres database and file storage. LiveKit Cloud carries the audio.

  • A Railway account and the Railway CLI. Sign in once with railway login.
  • A LiveKit Cloud project, with its URL, API key and API secret.
  • The ShipVoice Pro code on your computer, with uv installed.

Open the .env file at the top of the code and fill in these four lines.

SHIPVOICE_ADMIN_EMAIL=
SHIPVOICE_LIVEKIT_URL=
SHIPVOICE_LIVEKIT_API_KEY=
SHIPVOICE_LIVEKIT_API_SECRET=

Every other secret is made for you and saved in the same file.

Terminal window
sh deployments/railway/deploy.sh

The command does these steps for you:

  1. Makes a Railway project with a Postgres database and file storage.
  2. Adds the Control Plane, the console and the voice worker.
  3. Gives the console and the Control Plane a public address.
  4. Sets every variable.
  5. Uploads the code and waits until each service is running.
  6. Makes your Admin login and shows the password once.

You can run it again at any time. It creates only what is missing and never deletes anything.

Open the console address the command prints and sign in with your email and the password it showed. Then place a first call. When the call and its receipt appear, everything is connected.

If you lose the password, set a new one:

Terminal window
uv run shipvoice admin password --on railway

A first deploy leaves out three extra workers, because each one is a container on your Railway bill. Without them a campaign does not dial and a queued evaluation does not run. Add them when you need them:

Terminal window
sh deployments/railway/deploy.sh --workers
Option What it does
--project <id> Deploys into a Railway project you already have
--name my-agency Names a new project
--workspace NAME Picks the workspace, when your login reaches more than one
--workers Also runs the messaging, campaigns and evaluation workers

After you change the code, send one service again and touch nothing else:

Terminal window
uv run shipvoice deploy railway --only dashboard

The services are backend (the Control Plane), dashboard (the console) and agent (the voice worker).