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 | 169 | else |
170 | 170 | puts "no".red |
171 | 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 | 174 | fix_and_rerun |
175 | 175 | end |
... | ... | @@ -194,7 +194,7 @@ namespace :gitlab do |
194 | 194 | else |
195 | 195 | puts "no".red |
196 | 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 | 198 | "If necessary, remove the tmp/repo_satellites directory ...", |
199 | 199 | "... and rerun the above command" |
200 | 200 | ) |
... | ... | @@ -789,7 +789,7 @@ namespace :gitlab do |
789 | 789 | else |
790 | 790 | puts "wrong or missing".red |
791 | 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 | 794 | for_more_information( |
795 | 795 | "doc/raketasks/maintenance.md" |
... | ... | @@ -895,7 +895,7 @@ namespace :gitlab do |
895 | 895 | else |
896 | 896 | puts "no".red |
897 | 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 | 900 | for_more_information( |
901 | 901 | see_installation_guide_section("Install Init Script"), | ... | ... |