Performance: Deploying to Fly.io
This affects the initial page load speed and server response time by determining where and how your Remix app is hosted and served.
Deploy Remix app on Fly.io with multiple regions close to users.Deploy Remix app on a single distant server without edge locations.
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Single distant server deployment | No change | No change | Higher due to delayed HTML and assets | [X] Bad |
| Fly.io multi-region deployment | No change | No change | Lower due to faster server response | [OK] Good |
| Serving static assets without caching | No change | No change | Higher due to slower asset load | [X] Bad |
| Serving static assets with Fly.io caching/CDN | No change | No change | Lower due to fast asset delivery | [OK] Good |
flyctl launch when deploying a Remix app to Fly.io?flyctl launchflyctl deploy which publishes the app, flyctl launch prepares the app for deployment.flyctl launch sets up app config [OK]flyctl deploy is used to upload and publish your app to Fly.io servers.flyctl start and flyctl init are not valid Fly.io commands for deployment; flyctl build is not a Fly.io command.flyctl deploy [OK]flyctl deploy for your Remix app, what will you see if the deployment is successful?flyctl deploy but got an error saying your app's Dockerfile is missing. What should you do to fix this?flyctl launch which sets up deployment files.flyctl launch will generate the Dockerfile and configuration needed for deployment.flyctl launch to generate the Dockerfile and config -> Option Arestart_policy setting in the fly.toml config file.--auto-restart flag exists for deploy.restart_policy in the fly.toml file -> Option CPass the test and this pattern moves unknown