gem rails12factor, added ruby version to fix, altered enviroment routes and production to fix the problem with heroku