Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bin/discourse-start setup fails: POSTGRES_PORT seems to be wrong #20

Closed
stuartlangridge opened this issue Nov 29, 2013 · 0 comments
Closed
Assignees
Labels

Comments

@stuartlangridge
Copy link

stuartlangridge commented Nov 29, 2013

~/discourse-docker$ bin/discourse-start setup
+ exec sudo docker run -e REDIS_PROVIDER_URL=redis://user@100.85.250.86:49153 -e POSTGRES_HOST=100.85.250.86 -e POSTGRES_PORT=0.0.0.0:49155 -e POSTMARK_API_KEY= -e DISCOURSE_HOST=bvdiscourse.cloudapp.com -v /home/badvoltage/discourse-docker/data/discourse-public:/discourse/public srid/discourse setup
+ bundle exec rake db:create
invalid port number: "0.0.0.0:49155"

This seems to be being caused by this (code taken from bin/postgresql-info):

$ sudo docker ps | grep srid/postgresql:9.1 | awk '{print $1}'
299eb624837f
$ sudo docker port 299eb624837f 5432
0.0.0.0:49155

I think that the docker port command ought to be printing just a port number, not printing an IP and port number. I haven't changed any postgres configuration, and I followed the steps in the README. Do I need to tweak some configuration somewhere?

@ghost ghost assigned srid Dec 10, 2013
@srid srid closed this as completed in ed8eb7a Dec 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants