Run a RedwoodJS App
Getting an application running on Fly.io is essentially working out how to package it as a deployable image. Once packaged it can be deployed to the Fly.io platform.
In this guide we’ll learn how to deploy a RedwoodJS application on Fly.io.
We’ll be using the standard web application generated by RedwoodJS.
Deploy a Redwood app
First, install flyctl, the Fly.io CLI, and sign up to Fly.io if you haven’t already.
Now let’s generate a new Redwood app and set it up.
yarn create redwood-app my-redwood-project
cd my-redwood-project
You can check out the Redwood Quick Start guide to get your development environment setup and to generate some data models. Once you’re happy with your app, we can deploy it:
cd hello-redwood
fly launch
Creating app in /Users/me/hello-redwood
Scanning source code
Detected a RedwoodJS app
? App Name (leave blank to use an auto-generated name): hello-redwood
? Select organization: flyio (flyio)
? Select region: mad (Madrid, Spain)
Created app hello-redwood in organization soupedup
? Would you like to deploy now? Yes
==> Validating app configuration
--> Validating app configuration done
Services
TCP 80/443 ⇢ 8080
Remote builder fly-builder-little-glitter-8329 ready
...
1 desired, 1 placed, 1 healthy, 0 unhealthy [health checks: 2 total, 2 passing]
--> v0 deployed successfully