Skip to main content

Deploy to Railway

This page explains how to deploy applications to Railway using FluentCI.

Before you begin

The instructions on this page assume that you are familiar with Railway. In addition:

Using the Railway Plugin

You can use FluentCI to deploy applications to Railway using the railway plugin, no need to install Railway CLI on your machine, FluentCI will handle everything for you.

The following commands can be used to deploy applications to Railway:

# Deploy to Railway, make sure to export RAILWAY_TOKEN
fluentci run --wasm railway deploy

CI/CD pipeline integrations

The following examples show how to integrate FluentCI with popular CI providers to deploy applications to Railway:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: deploy
run: fluentci run --wasm railway deploy
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}