Commit 6ab6c55d authored by Alex Denisov's avatar Alex Denisov

Missed environment added to 'Try fixing it' block

parent b68bba44
...@@ -169,7 +169,7 @@ namespace :gitlab do ...@@ -169,7 +169,7 @@ namespace :gitlab do
else else
puts "no".red puts "no".red
try_fixing_it( try_fixing_it(
sudo_gitlab("bundle exec rake db:migrate") sudo_gitlab("bundle exec rake db:migrate RAILS_ENV=production")
) )
fix_and_rerun fix_and_rerun
end end
...@@ -194,7 +194,7 @@ namespace :gitlab do ...@@ -194,7 +194,7 @@ namespace :gitlab do
else else
puts "no".red puts "no".red
try_fixing_it( try_fixing_it(
sudo_gitlab("bundle exec rake gitlab:satellites:create"), sudo_gitlab("bundle exec rake gitlab:satellites:create RAILS_ENV=production"),
"If necessary, remove the tmp/repo_satellites directory ...", "If necessary, remove the tmp/repo_satellites directory ...",
"... and rerun the above command" "... and rerun the above command"
) )
...@@ -789,7 +789,7 @@ namespace :gitlab do ...@@ -789,7 +789,7 @@ namespace :gitlab do
else else
puts "wrong or missing".red puts "wrong or missing".red
try_fixing_it( try_fixing_it(
sudo_gitlab("bundle exec rake gitlab:gitolite:update_repos") sudo_gitlab("bundle exec rake gitlab:gitolite:update_repos RAILS_ENV=production")
) )
for_more_information( for_more_information(
"doc/raketasks/maintenance.md" "doc/raketasks/maintenance.md"
...@@ -895,7 +895,7 @@ namespace :gitlab do ...@@ -895,7 +895,7 @@ namespace :gitlab do
else else
puts "no".red puts "no".red
try_fixing_it( try_fixing_it(
sudo_gitlab("bundle exec rake sidekiq:start") sudo_gitlab("bundle exec rake sidekiq:start RAILS_ENV=production")
) )
for_more_information( for_more_information(
see_installation_guide_section("Install Init Script"), see_installation_guide_section("Install Init Script"),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment