Skip to content
Snippets Groups Projects
Commit 22d181b1 authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab)
Browse files

Specify RAILS_ENV when suggesting fixes

parent f4fafc46
No related branches found
No related tags found
1 merge request!104094 0 stable
Loading
Loading
@@ -169,7 +169,7 @@ namespace :gitlab do
else
puts "no".red
try_fixing_it(
"sudo -u gitlab -H bundle exec rake db:migrate"
"sudo -u gitlab -H bundle exec rake db:migrate RAILS_ENV=production"
)
fix_and_rerun
end
Loading
Loading
@@ -194,7 +194,7 @@ namespace :gitlab do
else
puts "no".red
try_fixing_it(
"sudo -u gitlab -H bundle exec rake gitlab:satellites:create",
"sudo -u gitlab -H bundle exec rake gitlab:satellites:create RAILS_ENV=production",
"If necessary, remove the tmp/repo_satellites directory ...",
"... and rerun the above command"
)
Loading
Loading
@@ -785,7 +785,7 @@ namespace :gitlab do
else
puts "wrong or missing".red
try_fixing_it(
"sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos"
"sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos RAILS_ENV=production"
)
for_more_information(
"doc/raketasks/maintenance.md"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment