Skip to content
Steve Kenworthy edited this page Dec 28, 2013 · 22 revisions

Note: This README has been updated for the Heroku cedar stack.

Using Heroku, you can deploy a Fat Free CRM instance within minutes.

Pre-requisites

Set up a Fat Free CRM Instance on Heroku

git clone https://github.com/fatfreecrm/fat_free_crm.git /path/to/ffcrm
cd /path/to/ffcrm
heroku login

Heroku uses ruby 2 by default, which Fat Free CRM supports/recommends. However, if you wish to use ruby 1.9, you must add ruby "1.9.3" to your Gemfile (requires bundler > 1.2) and then run bundle install. Be sure to use ruby 1.9 on your local machine aswell.

Commit the change and push out to heroku:

git add Gemfile
git commit
git push heroku master
heroku run rake db:migrate
heroku run rake ffcrm:demo:load (if you want demo data)
heroku run rake ffcrm:setup:admin USERNAME=admin PASSWORD=admin [email protected]
heroku ps:scale web=1
heroku open

Other useful heroku commands

heroku restart - restart the webservers
heroku ps - is the webserver running
heroku logs --ps web.1 --tail   - tail the log of a specific webserver process
git push heroku your-branch-name:master - to push a different branch to the webserver

Further reading

See https://devcenter.heroku.com/articles/getting-started-with-rails3