Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I’m setting up a ruby on rails application and the build step is timing out trying to get a DB connection even though I’ve setup the app as a trusted source:
[2023-01-20 16:27:24] │ ####################################################
[2023-01-20 16:27:25] │ Bundle completed (21.69s)
[2023-01-20 16:27:25] │ Cleaning up the bundler cache.
[2023-01-20 16:27:25] │ Removing bundler (2.3.10)
[2023-01-20 16:27:25] │ -----> Detecting rake tasks
[2023-01-20 16:27:28] │ -----> Preparing app for Rails asset pipeline
[2023-01-20 16:27:28] │ Running: rake assets:precompile
[2023-01-20 16:29:41] │ rake aborted!
[2023-01-20 16:29:41] │ ActiveRecord::ConnectionNotEstablished: connection to server at "165.***.***.***", port ***** failed: Connection timed out
[2023-01-20 16:29:41] │ Is the server running on that host and accepting TCP/IP connections?
[2023-01-20 16:29:41] │ /layers/heroku_ruby/gems/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/postgresql_adapter.rb:87:in `rescue in new_client'
<SNIP>
[2023-01-20 16:29:41] │ Tasks: TOP => environment
[2023-01-20 16:29:41] │ (See full trace by running task with --trace)
[2023-01-20 16:29:41] │ I, [2023-01-20T16:29:41.407944 #1503] INFO -- sentry: [Transport] Sending envelope with items [event] 5df24248a8074781a96fae3a9ff43178 to Sentry
[2023-01-20 16:29:41] │
[2023-01-20 16:29:41] │ !
[2023-01-20 16:29:41] │ ! Precompiling assets failed.
[2023-01-20 16:29:41] │ !
[2023-01-20 16:29:41] │ ERROR: failed to build: exit status 1
[2023-01-20 16:29:41] │
[2023-01-20 16:29:41] │
[2023-01-20 16:29:41] │ For documentation on the buildpacks used to build your app, please see:
[2023-01-20 16:29:41] │
[2023-01-20 16:29:41] │ Ruby v1.244.3 https://do.co/apps-buildpack-ruby
[2023-01-20 16:29:41] │
[2023-01-20 16:29:41] │ ✘ build failed
I have verified I can connect to the database from my home when adding my home IP to the trusted sources:

a6309a057c3f4cb38fb2e7feb67236
KFSys
ef1ed44cc2154be3bcbb2d727878f8
Devs Neonetworks
1e6b823ea20d4cb189a34a922f5588
Telmo Valverde
erik-jan martens
Henry Mui
anthonycarreon
garantieheld
Marin