Permalink
Browse files

Remote db configuration should honour multistage stage

  • Loading branch information...
1 parent 78ec3a4 commit 75d470c68a923b6dde443e40143918a6ebaa1c1a @bartzon bartzon committed Jan 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/capistrano/transmit.rb
@@ -55,7 +55,7 @@ def _db_config
# Production database configuration hash.
def _db_remote
- @_db_remote ||= YAML::load(_db_config)['production']
+ @_db_remote ||= YAML::load(_db_config)[stage.to_s]
end
# Development database configuration hash.

0 comments on commit 75d470c

Please sign in to comment.