Skip to content

Commit

Permalink
Merge pull request #122 from fly-apps/119-generate-run-errors-for-erb…
Browse files Browse the repository at this point in the history
…-controlled-databaseyml-files

recover from database.yml parse failures
  • Loading branch information
rubys authored Oct 19, 2024
2 parents 71f7fcc + 05cd94a commit 0cc74a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/dockerfile_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ def compose_web_volumes
volumes = %w[ log storage ]

if deploy_database == "sqlite3"
database = YAML.load_file("config/database.yml", aliases: true).dig("production", "database")
database = YAML.load_file("config/database.yml", aliases: true).dig("production", "database") rescue nil
if database && database =~ /^\w/
volumes << File.dirname(database)
end
Expand Down

0 comments on commit 0cc74a3

Please sign in to comment.