Delv
Railway
Getting Started Guide

How to Use Railway

A practical guide to get you up and running with Railway. Written by Delv Editorial, Delv Team.

Getting started with Railway

In this guide, you will learn how to quickly deploy applications and databases using Railway. By the end, you'll be able to set up your first project and have it running in the cloud in just a few minutes.

Step 1: Sign up and set up

  1. Go to Railway's website.
  2. Click on the "Sign Up" button in the top right corner.
  3. Choose to sign up using your GitHub account for easy integration.
  4. Once signed up, you will receive a $5 credit for usage. Familiarise yourself with the dashboard.

Step 2: Your first deployment

  1. On the dashboard, click the "New Project" button.
  2. Select "Deploy from GitHub" and authorise Railway to access your repositories.
  3. Choose the repository you want to deploy. Railway will automatically detect the necessary build settings.
  4. Click "Deploy" to start the process. You will see the deployment status in real-time.
  5. Once deployed, click on the project name to access your application and view its URL.

Step 3: Get better results

  1. Explore the "Settings" tab in your project to configure environment variables. Click "Add Variable" to set up any required configurations.
  2. For databases, click on "Add Resource" and choose your desired database (e.g., Postgres). Railway will provision it in seconds.
  3. Use the "Logs" section to monitor your application’s performance and troubleshoot any issues.

Pro tip

Take advantage of Railway's "Templates" feature. You can start with pre-configured setups for popular frameworks, which saves you time configuring everything from scratch.

Common mistake to avoid

Avoid skipping the configuration of environment variables. Not setting these correctly can lead to your application failing to connect to databases or other services. Always double-check your settings in the "Settings" tab before deploying.