1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
mastodon/lib/tasks/assets.rake
2017-09-25 16:58:12 +02:00

17 lines
424 B
Ruby

# frozen_string_literal: true
namespace :assets do
desc 'Generate 500.html'
task :generate_500 do
html = ApplicationController.render('errors/500', layout: 'error')
File.write(Rails.root.join('public', '500.html'), html)
end
end
if Rake::Task.task_defined?('assets:precompile')
Rake::Task['assets:precompile'].enhance do
Webpacker::Manifest.load
Rake::Task['assets:generate_500'].invoke
end
end