From 7c33ec7a7a5671f893f4c7e8d28e82624482b0b8 Mon Sep 17 00:00:00 2001 From: Dawa Ometto Date: Wed, 7 Sep 2022 18:24:51 +0200 Subject: [PATCH] Update Rakefile Remove unnecessary precompilation task. --- Rakefile | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Rakefile b/Rakefile index f95bc2d3..d874eb08 100644 --- a/Rakefile +++ b/Rakefile @@ -225,21 +225,3 @@ task :changelog do `cat #{history_file} >> #{temp.path}` `cat #{temp.path} > #{history_file}` end - -desc 'Precompile assets' -task :precompile do - require './lib/gollum/app.rb' - Precious::App.set(:environment, :production) - env = Precious::Assets.sprockets - path = ENV.fetch('GOLLUM_ASSETS_PATH', ::File.join(File.dirname(__FILE__), 'lib/gollum/public/assets')) - manifest = Sprockets::Manifest.new(env, path) - Sprockets::Helpers.configure do |config| - config.environment = env - config.prefix = Precious::Assets::ASSET_URL - config.digest = true - config.public_path = path - config.manifest = manifest - end - puts "Precompiling assets to #{path}..." - manifest.compile(Precious::Assets::MANIFEST) -end