fly-pr-review-apps icon indicating copy to clipboard operation
fly-pr-review-apps copied to clipboard

Using `fly launch` vs `fly apps create`?

Open jamaljsr opened this issue 3 months ago • 1 comments

This is part question and maybe a suggestion. Why does this action use fly launch instead of fly apps create?

I recently ran into an issue where the initial PR deployment of my app would not succeed due to healthchecks not being triggered. After getting some help in the community forums, it turn out that fly launch was modifying my fly.toml file to include the [http_service] section. This is what was breaking my deployments.

It may be a good idea for this action to check for the existence of a fly.toml file in the repo. If it does not exist, then run fly launch to deploy the app, otherwise run fly apps create so that these unexpected modifications do not occur.

jamaljsr avatar Mar 19 '24 20:03 jamaljsr