Refinery Hosting on Heroku


1) The Ruby language version 1.9.3 or higher
2) A working installation of ImageMagick
1) create a gemset using RVM

rvm use –create ruby-1.9.3@refinery
2)Installing Refinery

gem install refinerycms

3) Creating a Refinery application

refinerycms mycms

4) Starting up the Web Server

cd mycms
rails server

5) make sure to run these rake tasks

rake db:create
rake db:migrate
rake db:seed

6) create firat user

navigate to http://localhost:3000/refinery. You should be greeted with a screen prompting you to create your first Refinery user.
7) Deploying an existing local Refinery application to heroku

a) Update the Gemfile by adding pg gem as follows

group :production do
gem ‘pg’

b) add to git, create and deploy to heroku as follows
git commit -m “setup for Heroku”
heroku create myapp
git push heroku master

make sure you add the following: to config/application.rb
config.assets.initialize_on_precompile = true

d) run these on heroku too

heroku run rake db:migrate
heroku run rake db:seed


Klairvoyant info solutions

This entry was posted in ruby on rails, web development and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s