This repository contains an Astro build project, deployed on Railway. It serves as an example to showcase how simple and efficient deploying to Railway can be to get started using the railway CLI. Please note you can use the github integration easily but I wanted to explore the CLI.
Railway is a boutique cloud platform designed to offer ease of use, quick deployment, and a developer-friendly experience.
- Node.js and npm
- Docker
- Railway CLI
- Clone the repository.
git clone https://github.com/GuiBibeau/astro-railway.git
- Navigate into the project folder.
cd astro-railway
- Install the project dependencies.
npm install
- Run the Astro development server.
npm run dev
If you haven't installed the Railway CLI yet, you can install it by running :
# mac
brew install railway
# or via npm
npm i -g @railway/cli
# login
railway login
Initialize a Railway project inside your application folder.
railway init
Now, deploy your project to Railway:
railway up
Assign a domain to your deployed project.
railway domain
For more detailed information on domains, Railway provides excellent documentation.
And there you go! You've just deployed an Astro build project on Railway.