Locks specific gem versions and sets heroku staging environment.