Skip to content
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.

Latest commit

 

History

History
48 lines (23 loc) · 766 Bytes

README.rdoc

File metadata and controls

48 lines (23 loc) · 766 Bytes

Production ready Rails 4 and Heroku template

This template contains the following:

  • Ruby 2.1.1

  • Sass

  • Bootstrap with variable customization setup

  • Coffeescript

  • Slim

  • Postgres

  • Unicorn

  • Figaro

  • rails_12factor for Heroku

Setup

git clone git@github.com:jbhatab/rails-heroku-template.git

bundle install

Create /config/application.yml file for enviroment variables. Example is in config folder.

Install postgres on local machine

rake db:create

rake s. This is a rake task that runs unicorn.

Note: When pushing to production use figaro’s command to send config vars,

rake figaro:heroku

or

rake figaro:heroku to pass the heroku app name

Use uptime robot or pingdom to remove downtime on heroku’s free worker dyno.