compress css
This commit is contained in:
+1
-1
@@ -108,7 +108,7 @@ namespace :deploy do
|
|||||||
run_locally { execute "rsync -av --delete ./public/assets/ #{fetch(:user)}@#{rsync_host}:#{shared_path}/public/assets/" }
|
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/')
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ Qwaiter::Application.configure do
|
|||||||
# Compress JavaScripts and CSS
|
# Compress JavaScripts and CSS
|
||||||
# config.assets.compress = true #DEPRICATED
|
# config.assets.compress = true #DEPRICATED
|
||||||
config.assets.js_compressor = :uglifier
|
config.assets.js_compressor = :uglifier
|
||||||
|
config.assets.css_compressor = :sass
|
||||||
|
|
||||||
|
|
||||||
config.ember.variant = :production if defined?(Ember::Rails)
|
config.ember.variant = :production if defined?(Ember::Rails)
|
||||||
@@ -29,7 +30,7 @@ Qwaiter::Application.configure do
|
|||||||
# Generate digests for assets URLs
|
# Generate digests for assets URLs
|
||||||
config.assets.digest = true
|
config.assets.digest = true
|
||||||
# Don't fallback to assets pipeline if a precompiled asset is missed
|
# 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
|
# Defaults to nil and saved in location specified by config.assets.prefix
|
||||||
# config.assets.manifest = YOUR_PATH
|
# config.assets.manifest = YOUR_PATH
|
||||||
|
|||||||
Reference in New Issue
Block a user