I have sucessfully deployed an app to fly.io. Hurray.
But then I put the project on github, checked it out on another computer and ran fly deploy again. Fly created a new app, though fly.toml still contains the same app name.
What do I have to do so that it deploys to the “old” app and doesn’t create a new one?
fly deploy is the command you want. That uses the existing fly.toml and creates a new release. fly launch creates a new app. This distinction is confusing, sometimes, and we should be improving it.
Whoops! I missed that. fly deploy should never create a new application, I didn’t even think that was possible! Can you paste your fly.toml here? And also try running fly deploy again and paste the logs?
Ah, that’s the builder we use for remote Docker builds. We keep it around because it has a Docker cache. This makes the next build faster. We don’t bill you for it, it’s just there for you to look at.
It’s safe to delete, though, if you want. We’ll create a new one if we need to.
I kept deleting this file until now assuming that’s why I was losing my app due to free tier restrictions. I’m glad I don’t have to keep deleting it now as it was adding a few steps to my process that slowed me down.