Commit 596442f71fac605fa2657e060dd606eb7982e6bc
Exists in
master
and in
4 other branches
Merge pull request #2784 from AlexDenisov/gitlab_check_environment
Missing environment added to 'Try fixing it' block
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
lib/tasks/gitlab/check.rake
@@ -169,7 +169,7 @@ namespace :gitlab do | @@ -169,7 +169,7 @@ namespace :gitlab do | ||
169 | else | 169 | else |
170 | puts "no".red | 170 | puts "no".red |
171 | try_fixing_it( | 171 | try_fixing_it( |
172 | - sudo_gitlab("bundle exec rake db:migrate") | 172 | + sudo_gitlab("bundle exec rake db:migrate RAILS_ENV=production") |
173 | ) | 173 | ) |
174 | fix_and_rerun | 174 | fix_and_rerun |
175 | end | 175 | end |
@@ -194,7 +194,7 @@ namespace :gitlab do | @@ -194,7 +194,7 @@ namespace :gitlab do | ||
194 | else | 194 | else |
195 | puts "no".red | 195 | puts "no".red |
196 | try_fixing_it( | 196 | try_fixing_it( |
197 | - sudo_gitlab("bundle exec rake gitlab:satellites:create"), | 197 | + sudo_gitlab("bundle exec rake gitlab:satellites:create RAILS_ENV=production"), |
198 | "If necessary, remove the tmp/repo_satellites directory ...", | 198 | "If necessary, remove the tmp/repo_satellites directory ...", |
199 | "... and rerun the above command" | 199 | "... and rerun the above command" |
200 | ) | 200 | ) |
@@ -789,7 +789,7 @@ namespace :gitlab do | @@ -789,7 +789,7 @@ namespace :gitlab do | ||
789 | else | 789 | else |
790 | puts "wrong or missing".red | 790 | puts "wrong or missing".red |
791 | try_fixing_it( | 791 | try_fixing_it( |
792 | - sudo_gitlab("bundle exec rake gitlab:gitolite:update_repos") | 792 | + sudo_gitlab("bundle exec rake gitlab:gitolite:update_repos RAILS_ENV=production") |
793 | ) | 793 | ) |
794 | for_more_information( | 794 | for_more_information( |
795 | "doc/raketasks/maintenance.md" | 795 | "doc/raketasks/maintenance.md" |
@@ -895,7 +895,7 @@ namespace :gitlab do | @@ -895,7 +895,7 @@ namespace :gitlab do | ||
895 | else | 895 | else |
896 | puts "no".red | 896 | puts "no".red |
897 | try_fixing_it( | 897 | try_fixing_it( |
898 | - sudo_gitlab("bundle exec rake sidekiq:start") | 898 | + sudo_gitlab("bundle exec rake sidekiq:start RAILS_ENV=production") |
899 | ) | 899 | ) |
900 | for_more_information( | 900 | for_more_information( |
901 | see_installation_guide_section("Install Init Script"), | 901 | see_installation_guide_section("Install Init Script"), |