From 12ffbe9762f74f2eec5399c1b3467525f235954e Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Fri, 9 Feb 2018 17:19:10 +0100 Subject: [PATCH] Require capistrano-rbenv only in staging Production is not provisioned with Rbenv yet. We're first refactoring staging's provisioning and then, we'll work on production. So, this patch is temporary. This fixes the issue we had in https://github.com/coopdevs/timeoverflow/releases/tag/v1.3.0 while deploying and https://github.com/coopdevs/timeoverflow/releases/tag/v1.3.1 fixed. --- Capfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Capfile b/Capfile index 0f81c1684..908a94efd 100644 --- a/Capfile +++ b/Capfile @@ -16,7 +16,11 @@ require 'capistrano/deploy' # https://github.com/capistrano/passenger # require 'capistrano/rails' -require 'capistrano/rbenv' + +stage = ARGV.first +if stage == :staging # Sorry, production is not ready yet + require 'capistrano/rbenv' +end # Load custom tasks from `lib/capistrano/tasks` if you have any defined Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }