Skip to content

Commit d576743

Browse files
authored
Merge pull request #325 from coopdevs/dont-require-capistrano-rbenv-production
Require capistrano-rbenv only in staging
2 parents d7d886b + 12ffbe9 commit d576743

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Capfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ require 'capistrano/deploy'
1616
# https://github.com/capistrano/passenger
1717
#
1818
require 'capistrano/rails'
19-
require 'capistrano/rbenv'
19+
20+
stage = ARGV.first
21+
if stage == :staging # Sorry, production is not ready yet
22+
require 'capistrano/rbenv'
23+
end
2024

2125
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
2226
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }

0 commit comments

Comments
 (0)