Skip to content

Commit 088a953

Browse files
authored
Merge pull request #129 from danielmorrison/patch-1
Recover from a database parse failure
2 parents f4caddc + dbc89da commit 088a953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/dockerfile_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ def fly_make_toml
16001600
def fix_database_config
16011601
yaml = IO.read("config/database.yml")
16021602

1603-
production = YAML.load(yaml, aliases: true)["production"]
1603+
production = YAML.load(yaml, aliases: true)["production"] rescue nil
16041604
return unless production.is_a?(Hash) && production.values.all?(Hash)
16051605
return if production.keys == [ "primary" ]
16061606

0 commit comments

Comments
 (0)