Deploy your Astro Site with Railway
このコンテンツはまだ日本語訳がありません。
Railway is a deployment platform built to simplify your infrastructure stack from servers to observability with a single, scalable platform.
This guide is for deploying an Astro static site to Railway using either the web interface or Railway CLI tool.
To deploy an Astro site with on-demand rendering (SSR) using the Node adapter, you can follow Railway’s guide to deploying an Astro site.
Project Configuration
Section titled “Project Configuration”Railway’s default build system, Railpack, automatically builds your Astro project as a static site.
Deploy via the web interface
Section titled “Deploy via the web interface”-
Create a Railway account and sign in.
-
From the Railway dashboard, create a new project.
-
Select the option to deploy from a GitHub repository, and select your Astro project.
-
Generate or add a custom domain from your project’s network settings.
Deploy via Railway CLI
Section titled “Deploy via Railway CLI”-
Install the Railway CLI tool.
-
Login with the command
railway login
. -
From within your Astro project, run
railway init
and choose a workspace and project name. -
Run
railway up
to deploy your project on Railway. -
Run
railway domain
to generate a Railway provided service domain.
Official Resources
Section titled “Official Resources”Railway guide to deploying an Astro app
Community Resources
Section titled “Community Resources”How to host an Astro site on Railway