Deploying to Heroku
Heroku (http://heroku.com) is a polyglot Platform as a Service (PaaS) that allows scalable hosting of websites written in several popular languages, including Ruby, Python, and Java. Deployment is as simple as installing the Heroku toolbelt and running a few commands. Heroku keeps a copy of our code on its own Git server and deploys the latest version when we do a push
.
Sign up for Heroku and then head over to https://toolbelt.heroku.com and follow the installation instructions for your OS.
Tip
If you use Apache Subversion (SVN) or Concurrent Versions System (CVS) instead of Git, please note that you'll need to also use Git as it is required for deployment to Heroku: https://devcenter.heroku.com/articles/git#using-subversion-or-other-revision-control-systems.
We need to perform the following steps while using Heroku:
To use Rails 4.0.3 with Heroku, we need to add the
rails_12factor
gem to the Gemfile so that we can precompile our assets.By default, Rails compiles the JavaScript...