I am VERY new to RoR(going through Michael Hartl’s tutorial now). I understand there are three states(?) that your app can be in: development, production, and test. And each state typically uses different database types.
I’ve created a blank rails app, put it under git, and deployed it to heroku. That all works. Is my app in the production state on heroku or is it still in development? How do you check?
I think i remember reading the Gemfile specifies the resources to install in the different states. Does heroku default to use whatever is specified in the production block? or am i way off?
my Gemfile
source 'http://rubygems.org'
gem 'rails', '3.0.11'
gem 'sqlite3', '1.3.3'
You can check by looking at the output of
heroku configyou’re looking for the RAILS_ENV and/or RACK_ENV, it will be set to production by default.