Skip to content

Instantly share code, notes, and snippets.

@cheeyeo
Forked from jbhannah/Procfile
Last active August 29, 2015 14:12
Show Gist options
  • Save cheeyeo/f305b5b15bb3df90cba3 to your computer and use it in GitHub Desktop.
Save cheeyeo/f305b5b15bb3df90cba3 to your computer and use it in GitHub Desktop.
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