Deployment
Deploy Backend

🚀 Deploying Backend on Railway

Easily deploy your Strapi backend on Railway by following these steps:

🚀 Deploy via Railway Dashboard

  1. Sign up at railway.app (opens in a new tab).
  2. Connect your GitHub repository; Railway will automatically detect and start deployment.

🗄️ Set Up PostgreSQL Database

  1. Create a PostgreSQL database on Railway.
  2. Update your .env file with the new database credentials:
    DATABASE_CLIENT=postgres
    DATABASE_HOST=<your-db-host>
    DATABASE_PORT=<your-db-port>
    DATABASE_NAME=<your-db-name>
    DATABASE_USERNAME=<your-db-user>
    DATABASE_PASSWORD=<your-db-password>
  3. Restart the application to apply changes.

⚙️ Final Steps

ℹ️

✅ Your Strapi backend is successfully deployed on Railway! Need more details? Check Railway's settings and Strapi’s documentation.