Update ruby version to 2.1.2.
Add gem rails12factor.
Update gem versions.