Railway
One command puts ShipVoice Business online on Railway. It uses LiveKit Cloud for audio.
Before you start
You need:
- 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 Business code on your computer, with
uvinstalled.
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
sh deployments/railway/deploy.sh
The 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 Owner 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
Open the console address the command prints and sign in with your email and the password it showed.
If you lose the password, set a new one:
uv run shipvoice admin password --on railway
Check it works
Place a test call from the console. When the call and its receipt appear, everything is connected. See Your first test call.
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 --workers
Options
| Option | What it does |
|---|---|
--project <id> | Deploys into a Railway project you already have |
--name my-business | 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
After you change the code, send one service again and touch nothing else:
uv run shipvoice deploy railway --only dashboard
The services are backend (the Control Plane), dashboard (the console) and agent (the voice worker).
Next
The deploy does not set up a phone number. See Get a phone number.