Modified script/rails for Heroku.