Giter Club home page Giter Club logo

railway-shiny's Introduction

Deploy Shiny Apps to Railway.app

Clone and deploy this template on Railway:

Deploy on Railway

What is Railway

Infrastructure, Instantly

Develop code in a cloud that feels local. When you're ready, deploy from anywhere

https://railway.app/

Setup

Following the Railway.io docs: https://docs.railway.app/. Inside this project, cd starter.

Step 1. Install railway CLI https://docs.railway.app/cli/installation

Step 2. Sign up or sign in and go to your dashboard https://railway.app/dashboard (you can sign up with email or with your GitHub account)

You might have to verify your account (promise not to do anything fishy)

Step 3. Log in with railway login and follow the prompts

Step 4. Create a new project

4a Option 1: In your dashboard, create a new Empty Project

You'll be presented with a project ID, e.g. a4dd399d-494e-4b2f-944a-ebc05be245df

Link to this project using CLI (copy from dashboard settings)

export ID="a4dd399d-494e-4b2f-944a-ebc05be245df"
railway link $ID

4b Option 2: use CLI, select Empty Project

railway init

Step 5. Add your project to the folder

If you have a Dockerfile in your project directory, you can just run railway run with no arguments to build and run the Dockerfile.

As in Heroku, you need the PORT variable: https://docs.railway.app/deployment/up

You'll see something like:

๐ŸŽ‰ Built railway-local/hot-rainstorm-production:latest
๐Ÿš‚ Running at 127.0.0.1:4411

Follow the link and test the app. Ctrl+C to kill.

Step 6. Deploy your app:

railway up

The assigned *.up.railway.app domain times out instantly: https://feedback.railway.app/bug-reports/p/websocket-issue

Custom domain is supposed to work https://docs.railway.app/deployment/custom-domains

Step 7. Custom domain

  1. Select the environment and enter your domain name
  2. Add the CNAME record to the DNS settings for your domain
  3. Wait for Railway to verify your CNAME record

Once a custom domain has been correctly configured, Railway will automatically generate and apply a Let's Encrypt certificate.

Starter Plan Project Limits

Stater plans are designed to help you evaluate Railway and are fit for hobbyist projects. You get access to all features on Railway and you have no limits to the amount of projects you can provision.

Starter plans get $5 of credits that do not accumulate.

railway-shiny's People

Contributors

psolymos avatar

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.