|
|
@ -371,18 +371,20 @@ namespace :mastodon do
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
prompt.say "\n"
|
|
|
|
unless using_docker
|
|
|
|
prompt.say 'The final step is compiling CSS/JS assets.'
|
|
|
|
prompt.say "\n"
|
|
|
|
prompt.say 'This may take a while and consume a lot of RAM.'
|
|
|
|
prompt.say 'The final step is compiling CSS/JS assets.'
|
|
|
|
|
|
|
|
prompt.say 'This may take a while and consume a lot of RAM.'
|
|
|
|
|
|
|
|
|
|
|
|
if prompt.yes?('Compile the assets now?')
|
|
|
|
if prompt.yes?('Compile the assets now?')
|
|
|
|
prompt.say 'Running `RAILS_ENV=production rails assets:precompile` ...'
|
|
|
|
prompt.say 'Running `RAILS_ENV=production rails assets:precompile` ...'
|
|
|
|
prompt.say "\n\n"
|
|
|
|
prompt.say "\n\n"
|
|
|
|
|
|
|
|
|
|
|
|
if !system(env.transform_values(&:to_s).merge({ 'RAILS_ENV' => 'production' }), 'rails assets:precompile')
|
|
|
|
if !system(env.transform_values(&:to_s).merge({ 'RAILS_ENV' => 'production' }), 'rails assets:precompile')
|
|
|
|
prompt.error 'That failed! Maybe you need swap space?'
|
|
|
|
prompt.error 'That failed! Maybe you need swap space?'
|
|
|
|
else
|
|
|
|
else
|
|
|
|
prompt.say 'Done!'
|
|
|
|
prompt.say 'Done!'
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|