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
the postgresql database doesn't seem to start, nothing can connect:
fig run web rake db:create
could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
Also tried:
fig run db /usr/bin/psql -l
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
and
fig run db /usr/bin/psql -h 127.0.0.1
psql: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
The error message in the first case suggests that one of the following is true:
your database.yml doesn't have the code to read the environment variables in it (as per the database.yml in the Rails guide)
the web service isn't linked to the db service (as per the fig.yml in the same guide)
the db service isn't running
If it's (3), run fig up -d db to start the database first, then if you've done the first two, fig run web rake db:create ought to work. After that you can just run fig up to get going.
I was reading the tutorial while you guys were updating it, fixed.
These should be changed from:
MY_APP_DB_1_PORT_5432_TCP_ADDR
MY_APP_DB_1_PORT_5432_TCP_PORT
TO:
DB_1_PORT_5432_TCP_ADDR
DB_1_PORT_5432_TCP_PORT
Activity
aanand commentedon Jan 29, 2014
The error message in the first case suggests that one of the following is true:
If it's (3), run
fig up -d dbto start the database first, then if you've done the first two,fig run web rake db:createought to work. After that you can just runfig upto get going.Hope that helps!
jtoy commentedon Jan 29, 2014
I was reading the tutorial while you guys were updating it, fixed.
These should be changed from:
MY_APP_DB_1_PORT_5432_TCP_ADDR
MY_APP_DB_1_PORT_5432_TCP_PORT
TO:
DB_1_PORT_5432_TCP_ADDR
DB_1_PORT_5432_TCP_PORT
Merge pull request docker#63 from kunalkushwaha/master
Merge pull request docker#63 from prometheus/sdurrheimer-circle-use-b…