Skip to content

Commit

Permalink
Use 'bundle_bin' in doing 'bundle exec' in Rails commands. Related to #…
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Jul 13, 2012
1 parent 243a688 commit 02319e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mina/rails.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require 'mina/bundler'

settings.rails_env ||= 'production'
# TODO: This should be lambda
settings.bundle_prefix ||= lambda { %{RAILS_ENV="#{rails_env}" bundle exec} }
settings.bundle_prefix ||= lambda { %{RAILS_ENV="#{rails_env}" #{bundle_bin} exec} }
settings.rake ||= lambda { %{#{bundle_prefix} rake} }
settings.rails ||= lambda { %{#{bundle_prefix} rails} }
settings.asset_paths ||= ['vendor/assets/', 'app/assets/']
Expand Down

0 comments on commit 02319e6

Please sign in to comment.