Skip to content

Instantly share code, notes, and snippets.

@danielvlopes
Forked from jbhannah/Procfile
Created May 10, 2017 06:50
Show Gist options
  • Save danielvlopes/a85f42030590fd63a347bab62571b227 to your computer and use it in GitHub Desktop.
Save danielvlopes/a85f42030590fd63a347bab62571b227 to your computer and use it in GitHub Desktop.
Jekyll on Heroku without Rack::Jekyll or custom buildpacks
require 'rack/contrib/try_static'
require 'rack/contrib/not_found'
use Rack::TryStatic,
:root => "_site",
:urls => %w[/],
:try => ['index.html', '/index.html']
run Rack::NotFound.new('_site/404.html')
web: bundle exec puma -p $PORT config.ru
namespace :assets do
desc 'Precompile assets'
task :precompile do
sh "bundle exec jekyll build"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment