From af3ecfdf7951662bfff2131f072d812127497d39 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Sun, 4 Oct 2015 12:13:28 +0200 Subject: [PATCH] compress css --- config/deploy.rb | 2 +- config/environments/production.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index 026e7ffb..bdb3c4ee 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -108,7 +108,7 @@ namespace :deploy do run_locally { execute "rsync -av --delete ./public/assets/ #{fetch(:user)}@#{rsync_host}:#{shared_path}/public/assets/" } execute :chown, "-R www-data:www-data", shared_path.join('public/assets/') - run_locally { execute 'rm -rf public/assets' } + #run_locally { execute 'rm -rf public/assets' } end end diff --git a/config/environments/production.rb b/config/environments/production.rb index 18e69c20..d9b1ee16 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -22,6 +22,7 @@ Qwaiter::Application.configure do # Compress JavaScripts and CSS # config.assets.compress = true #DEPRICATED config.assets.js_compressor = :uglifier + config.assets.css_compressor = :sass config.ember.variant = :production if defined?(Ember::Rails) @@ -29,7 +30,7 @@ Qwaiter::Application.configure do # Generate digests for assets URLs config.assets.digest = true # Don't fallback to assets pipeline if a precompiled asset is missed - config.assets.compile = true + config.assets.compile = false # Defaults to nil and saved in location specified by config.assets.prefix # config.assets.manifest = YOUR_PATH