Coder Social home page Coder Social logo

astro-railway's Introduction

Astro Build Project Deployed on Railway

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.

Why Railway?

Railway is a boutique cloud platform designed to offer ease of use, quick deployment, and a developer-friendly experience.

Requirements

  • Node.js and npm
  • Docker
  • Railway CLI

Local Setup

  1. Clone the repository.
    git clone https://github.com/GuiBibeau/astro-railway.git
  2. Navigate into the project folder.
    cd astro-railway
  3. Install the project dependencies.
    npm install
  4. Run the Astro development server.
    npm run dev

Deploying to Railway

Step 1: Install Railway CLI

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

Step 2: Initialize Your Railway Project

Initialize a Railway project inside your application folder.

railway init

Step 3: Deploy to Railway

Now, deploy your project to Railway:

railway up

Step 4: Assign a Domain

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.

astro-railway's People

Contributors

guibibeau avatar

Watchers

 avatar

Forkers

fromatlantis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.