You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 16, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 16, 2024. It is now read-only.
Connection refused when running rake assets:precompile with database service #9
The step rake assets:precompile tries to connect to database and, as on build the links wasn't set yet, the build fails with:
rake aborted!PG::ConnectionBad: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
I have the same issue. Only thing that gets me past assets:precompile is copying the dockerfile and adding ONBUILD EXPOSE 5432 before the assets:precompile task. My dockerfile and docker-compose.yml were written by the heroku docker init command, and haven't been touched.
Can anyone else confirm this? Are there any objections to putting this in?
EDIT: Actually this is a different error. I submitted a new issue #15
Activity
hxegon commentedon Mar 30, 2016
I have the same issue. Only thing that gets me past assets:precompile is copying the dockerfile and adding
ONBUILD EXPOSE 5432before the assets:precompile task. My dockerfile and docker-compose.yml were written by the heroku docker init command, and haven't been touched.Can anyone else confirm this? Are there any objections to putting this in?
EDIT: Actually this is a different error. I submitted a new issue #15
paulodiovani commentedon Apr 1, 2016
@hxegon if your problem happens whe running
docker build, I think it's the same problem.lynndylanhurley commentedon Jun 7, 2016
I'm having the same issue. Here's my stacktrace:
https://gist.github.com/lynndylanhurley/fe4584c6f94fffede1d069521ea3df5b
I just ran
docker-compose web upon a new Rails project.Here's my
database.ymlfile:martinjego commentedon Dec 2, 2017
Here post this on your terminal. heroku addons:create heroku-postgresql