Previously, the fly launch command allowed me to create an app without attaching a database, enabling the addition of a database later. However, the current behavior of the command automatically adds a custom database configuration to the PostgreSQL option.
In my organization, we deploy pull request preview apps that share a single database cluster. Since the fly launch command lacks a flag like –db=none or –skip-db, I’m unsure how to proceed in this scenario. Any guidance on a workaround would be greatly appreciated.
Having the database attach by default is strange, it’s making an assumption about my stack. In my opinion it should be opt-in rather than opt-out. fly launch --db postgres
Without knowing anything about your stack, I can’t comment further, but fly launch does NOT automatically assume Postgres. We have a number of framework specific scanners, and a number of them attempt to determine if your application is using Postgres, and if such a scanner detects such use, postgres will part of the original recommendation, and something you can override via the web UI.