Why can't my Private Spaces app connect to private Heroku Postgres or Redis instances during deploy?
You want your app to connect to its private-tier Heroku Postgres or Heroku Redis during deploy and build but the app reports errors like
ETIMEDOUT and can not connect to the private datastore.
Private Spaces apps are built outside of the Spaces. This makes it impossible to reach the Private datastore protected inside the Private Space while the app is being built and deployed.
If possible, eliminate the dependency on your private datastore during build time or use a datastore in Common Runtime.
Otherwise, Pipelines maybe of your help:
- Create a pipeline and create a Common Runtime app in staging with public datastores
- Add the Private Space app in production
- Deploy to staging
- Promote the staging app to production