set SAFETY_ASSURED=1 of db:setup in mastodon:setup (#6758)

This commit is contained in:
艮 鮟鱇 2018-03-13 00:21:48 +09:00 committed by Eugen Rochko
parent f89ff65ec7
commit f5f165a5eb

View file

@ -302,7 +302,7 @@ namespace :mastodon do
prompt.say 'Running `RAILS_ENV=production rails db:setup` ...'
prompt.say "\n"
if cmd.run!({ RAILS_ENV: 'production' }, :rails, 'db:setup').failure?
if cmd.run!({ RAILS_ENV: 'production', SAFETY_ASSURED: 1 }, :rails, 'db:setup').failure?
prompt.say "\n"
prompt.error 'That failed! Perhaps your configuration is not right'
else