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 global application 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. Check out the Redwood tutorial which guides you through building and deploying a database-backed application on Fly.io.
First, install flyctl, your Fly.io app command center, and sign up to Fly.io if you haven't already.
Generate a Redwood App
Now let's generate a shiny, new Redwood app and set it up for Fly deployment.
yarn create redwood-app my-redwood-project cd my-redwood-project
Now check out the Redwood Quick Start guide to get your development environment setup and to generate some data models.
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