deploy-railway

- Zero config deployments

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "deploy-railway" with this command: npx skills add nguyenhuuca/assessment/nguyenhuuca-assessment-deploy-railway

Deploy to Railway

Why Railway?

  • Zero config deployments

  • Automatic HTTPS

  • Built-in databases

  • Environment management

  • Preview environments

Quick Start

Install CLI

npm install -g @railway/cli

Login

railway login

Initialize project

railway init

Deploy

railway up

Configuration

railway.json

{ "build": { "builder": "NIXPACKS" }, "deploy": { "startCommand": "npm start", "healthcheckPath": "/health", "restartPolicyType": "ON_FAILURE" } }

Environment Variables

Set variable

railway variables set DATABASE_URL=postgres://...

Set from file

railway variables set < .env.production

Database Setup

Add PostgreSQL

railway add --database postgres

Get connection URL

railway variables get DATABASE_URL

Deployment Workflow

  1. Connect Repo

railway link

  1. Configure Build

Railway auto-detects most frameworks. Override with:

Nixpacks (default)

railway up

Dockerfile

railway up --dockerfile

  1. Set Domain

railway domain

Best Practices

  • Use Preview Environments: Test PRs before merge

  • Separate Databases: Different DB per environment

  • Use Variables: Never hardcode secrets

  • Health Checks: Enable for reliability

  • Logs: Use railway logs for debugging

Common Commands

View logs

railway logs

Open dashboard

railway open

Run command in environment

railway run npm run migrate

List services

railway status

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

designing-systems

No summary provided by upstream source.

Repository SourceNeeds Review
General

agile-methodology

No summary provided by upstream source.

Repository SourceNeeds Review
General

data-management

No summary provided by upstream source.

Repository SourceNeeds Review
General

demo-design-tokens

No summary provided by upstream source.

Repository SourceNeeds Review