lib/bait/cli.rb in bait-0.5.4 vs lib/bait/cli.rb in bait-0.5.5
- old
+ new
@@ -10,9 +10,12 @@
##
# Start the server
def self.server
puts "** Bait/#{Bait::VERSION} booting up in #{Bait.env} environment"
+ if Bait.env == "production" && Bait.assets.missing?
+ Bait.assets.precompile
+ end
require 'bait/api'
Bait::Api.run!
end
##