generating the generated fly.toml, Dockerfile and elixir-specific files by fly launch

is there a command to generate the fly.toml, Dockerfile and elixir-specific files generated on fly launch?

i’m in a new elixir project, run fly launch, i respond “Y” to tweak the settings, it takes me to the fly UI to specify settings, i give it a region (to match the db cluster’s region I’m about to select), select the db cluster, and click okay. it returns to the command line to finish fly launch… but creates a new cluster (despite my setting) and gives the 15 minute way message. and fly.toml and Dockerfiles aren’t generating if ctrl+c is pressed to “finish deploy” as the console instructs

goal here is get the fly.toml, Dockerfile, and other specific settings a successful fly launch yields

fly launch --no-deploy should do what you’re after. It’ll run the launch process (creating an app, fly.toml, generating a dockerfile, etc) without actually deploying any machines.

If you don’t want to use the web settings, you can also pass a --region flag on fly launch to set your region. Similarly, --no-db will skip provisioning a db.

Just to confirm, are you seeing fly launch create a Postgres cluster even if none is set in the web UI? That shouldn’t be happening, and I’m not able to reproduce. If you are seeing that, some screenshots would help us take a look.

1 Like