Try using RAILS_DATABASE_POOL env var
Don't bundle install