Coding

Some ideas about writing code, since 2003

The best way to run Jekyll on pow, is make it works as a Rack application. How do it?

If you have created your application using jekyll new you need to create a Gemfile with the following content:

source 'https://rubygems.org'

gem 'rack-jekyll'

and bundle-install-it!

Then create a config.ru with the following content:

require 'rubygems'
require 'bundler'
Bundler.setup

require 'rack/jekyll'

run Rack::Jekyll.new

I've seen on many places just the require rack/jekyll and run Rack::Jekyll.new but pow said was not able to require 'rack/jekyll' so I added the first 3 lines that is the bundler prelude

To finish you just need to link on ~/.pow and everything will be ok!

About

This is my personal space where I take notes about tech/programming things. Being in love with Linux since 1998, Ruby/Rails since 2010 and React/ES6 since 2016 you have some idea what you'll find here.

Celso Fernandes

Mailing

Why a mailing list?

Copyright (c) 2003-2019

Coding Logo