Add gem rails_12factor to gemfile.
Database to postgresql