From f4eaae57679287b3e92a943b50a66ddb641350d9 Mon Sep 17 00:00:00 2001
From: Dimitar Dimitrov <me@ddimitrov.name>
Date: Wed, 30 Sep 2015 16:30:13 +0300
Subject: [PATCH] Add a missing RAILS_ENV=production to crontab clearing

All other commands in the guide set this env var, but it's missing here
and this causes whenever not to clear the crontab file of gitab_ci
properly.
---
 doc/migrate_ci_to_ce/README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/migrate_ci_to_ce/README.md b/doc/migrate_ci_to_ce/README.md
index 2725bf343ee..56bf7a14182 100644
--- a/doc/migrate_ci_to_ce/README.md
+++ b/doc/migrate_ci_to_ce/README.md
@@ -143,7 +143,7 @@ sudo gitlab-ctl stop ci-sidekiq
 # Source
 sudo service gitlab_ci stop
 cd /home/gitlab_ci/gitlab-ci
-sudo -u gitlab_ci -H bundle exec whenever --clear-crontab
+sudo -u gitlab_ci -H bundle exec whenever --clear-crontab RAILS_ENV=production
 ```
 
 ### II. Moving data
-- 
GitLab