Merge pull request #1150 from metamaps/rake-assets-precompile

run perms:fix on assets:precompile
This commit is contained in:
Connor Turland 2017-10-15 11:02:59 -04:00 committed by GitHub
commit 8169f24072

View file

@ -3,8 +3,13 @@ namespace :assets do
task :js_compile do task :js_compile do
system 'npm install' system 'npm install'
system 'npm run build' system 'npm run build'
end
task :production_ready do
system 'bin/build-apidocs.sh' if Rails.env.production? system 'bin/build-apidocs.sh' if Rails.env.production?
Rake::Task['perms:fix'].invoke if Rails.env.production?
end end
end end
Rake::Task[:'assets:precompile'].enhance([:'assets:js_compile']) Rake::Task[:'assets:precompile'].enhance([:'assets:js_compile'])
Rake::Task[:'assets:precompile'].enhance([:'assets:production_ready'])