create log folder for each new site + minify assets when deploying to Engine

did committed Mar 03, 2016
commit cd0615067a60fcd99cd1ea9a80fb22399c45069b
Showing 2 changed files with 7 additions and 3 deletions
locomotive/wagon/commands/concerns/steam_concern.rb b/lib/locomotive/wagon/commands/concerns/steam_concern.rb +4 -3
@@ @@ -8,9 +8,10 @@ module Locomotive::Wagon
return @steam_services if @steam_services
Locomotive::Steam.configure do |config|
- config.mode = :test
- config.adapter = { name: :filesystem, path: path }
- config.asset_path = File.expand_path(File.join(path, 'public'))
+ config.mode = :test
+ config.adapter = { name: :filesystem, path: path }
+ config.asset_path = File.expand_path(File.join(path, 'public'))
+ config.minify_assets = true
end
@steam_services = Locomotive::Steam::Services.build_instance.tap do |services|
locomotive/wagon/commands/serve_command.rb b/lib/locomotive/wagon/commands/serve_command.rb +3 -0
@@ @@ -134,6 +134,9 @@ module Locomotive::Wagon
end
def configure_logger
+ # make sure the logs folder exist and get rid of that ugly error message if it doesn't
+ FileUtils.mkdir_p(File.join(path, 'log'))
+
Locomotive::Common.reset
Locomotive::Common.configure do |config|
logger = options[:daemonize] ? log_file : nil