views:

45

answers:

1

Hello, I haven't used Ruby. I don't what gems are. But I know how to install them and do basic things like that.

I heard of Jekyll and decided to start my own using Heroku. I found Rack-Jekyll that will work on Heroku.

I created my site as per Jekyll instructions and it is running fine on my system. Then I did what I was told to do in http://github.com/bry4n/rack-jekyll#readme. But when I push it to Heroku, I get an error:

---> Heroku received push
---> Rack app detected
---> Installing rack-jekyll from http://rubygems.org
     ERROR: could not find gem "rack-jekyll" locally or in a repository

On seeing this, I downloaded the rack-jekyll.gem file and committed it to the repsitory and tried uploading it. Even that didn't work. Can you tell me precisely what to do?

A: 

You don't need to add the gem file to the repo. What you need to do is let heroku know what gems your app needs. They have a couple ways for you to do this(docs).

The simpler one is to add a gem manifest file.

create a .gems file in the root directory of your app that looks like this:

 rack-jekyll
 # the names of any other gems you need.

Heroku will look at the .gems file and install all the gems listed there.

BaroqueBobcat