Skip to content

Commit

Permalink
Merge pull request #117 from fly-apps/single-database-url-secret
Browse files Browse the repository at this point in the history
force update of config/database.yml if fly.toml is present
  • Loading branch information
rubys authored Sep 27, 2024
2 parents 6eb6e3f + 1d1f213 commit d960911
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/generators/dockerfile_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,10 @@ def generate_app

template "docker-compose.yml.erb", "docker-compose.yml" if options.compose

template "database.yml.erb", "config/database.yml" if fix_database_config
if fix_database_config
template "database.yml.erb", "config/database.yml",
force: File.exist?("fly.toml")
end

if using_litefs?
template "litefs.yml.erb", "config/litefs.yml"
Expand Down

0 comments on commit d960911

Please sign in to comment.