rescue jammit if java isn't installed on the system. server will continue starting normally if this is the case.
This commit is contained in:
parent
d1a745c9cd
commit
b8e04d4888
1 changed files with 6 additions and 1 deletions
|
|
@ -43,7 +43,12 @@ end
|
|||
|
||||
def package_js
|
||||
require 'jammit'
|
||||
|
||||
begin
|
||||
Jammit.package!
|
||||
rescue => e
|
||||
puts "Error minifying assets, but server will continue starting normally. Is Java installed on your system?"
|
||||
end
|
||||
end
|
||||
|
||||
begin
|
||||
|
|
|
|||
Loading…
Reference in a new issue