Railway
Goal: a whole install online in one Railway project, with a public address for the console.
What you get
Section titled “What you get”One Railway project holding the console, the Control Plane, the voice worker, a Postgres database and file storage. LiveKit Cloud carries the audio.
Before you start
Section titled “Before you start”- 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
uvinstalled.
Fill in four values
Section titled “Fill in four values”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.
Deploy
Section titled “Deploy”sh deployments/railway/deploy.shThe command does these steps for you:
- Makes a Railway project with a Postgres database and file storage.
- Adds the Control Plane, the console and the voice worker.
- Gives the console and the Control Plane a public address.
- Sets every variable.
- Uploads the code and waits until each service is running.
- 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.
Sign in and check
Section titled “Sign in and check”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:
uv run shipvoice admin password --on railwayTurn on texts, campaigns and evaluations
Section titled “Turn on texts, campaigns and evaluations”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:
sh deployments/railway/deploy.sh --workersOptions
Section titled “Options”| 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 |
Send a change
Section titled “Send a change”After you change the code, send one service again and touch nothing else:
uv run shipvoice deploy railway --only dashboardThe services are backend (the Control Plane), dashboard (the console) and agent (the voice worker).