# Deploy to Railway

> Deploy your Sendable app to Railway with one click.

Source: https://wav1.recrav.com/docs/quickstart/nodejs/railway

## One-Click Deploy [#one-click-deploy]

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/sendable-starter)

## Manual Setup [#manual-setup]

### 1. Create Project [#1-create-project]

```bash
railway login
railway init
```

### 2. Add Environment Variables [#2-add-environment-variables]

In Railway dashboard:

```
SENDABLE_API_KEY=your_api_key_here
SENDABLE_WEBHOOK_SECRET=your_webhook_secret
```

### 3. Deploy [#3-deploy]

```bash
railway up
```

### 4. Configure Webhook [#4-configure-webhook]

Copy your Railway domain and set it as webhook URL in Sendable dashboard:

```
https://your-app.up.railway.app/webhook
```

## Docker Deployment [#docker-deployment]

Create `Dockerfile`:

```dockerfile
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
CMD ["npm", "start"]
```

Railway automatically detects and uses the Dockerfile.
