Skip to content

Commit

Permalink
Update Rakefile
Browse files Browse the repository at this point in the history
Remove unnecessary precompilation task.
  • Loading branch information
dometto committed Sep 7, 2022
1 parent 3f8955a commit 7c33ec7
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7c33ec7

Please sign in to comment.