diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 1eabbdc5cad0e0fbcc6eec6af135a4f3b2fec7a0..1bd91f0bdcebafee901b86203b196d7c3282794d 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -147,7 +147,7 @@ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)
 sudo gitlab-rake gitlab:env:info)
 
 (For installations from source run and paste the output of:
-sudo -u git -H bundle exec rake gitlab:env:info)
+sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)
 
 ## Possible fixes