Skip to content

Commit

Permalink
force update of config/database.yml if fly.toml is present
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Sep 27, 2024
1 parent 02de62d commit 1d1f213
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 1d1f213

Please sign in to comment.