How do I redeploy changes from a local static website to fly.io?
I have been deleting the app from fly.io and redeploying the app with the same name but that causes errors like “fly.dev. PR_END_OF_FILE_ERROR”
How do I redeploy changes from a local static website to fly.io?
I have been deleting the app from fly.io and redeploying the app with the same name but that causes errors like “fly.dev. PR_END_OF_FILE_ERROR”
A deploy will automatically create a new version of your app. There is no need to delete it each time.
If you do delete it, you will indeed run into problems because an app’s name has to be unique and there would likely be remnants of your prior app still in the system.
Following the deploy, once any healthcheck you have in your fly.toml
file passes using the new code, traffic is automatically directed to the new vm (which has the new code). So your domain (or app-name.fly.dev
) continues to work. And then Fly deletes the old vm automatically.
Thank you Greg!