g0v / kuansim

鄉民關心你 - 事件追蹤分析系統
http://hack.g0v.tw/kuansim/mynkDCEAXgc
30 stars 8 forks source link

can not connect pgrest in vagrant instance. #44

Closed hychen closed 11 years ago

hychen commented 11 years ago

step to reproduce:

  1. vagrant up
  2. curl localhost:6987/collections

except result:

can see exposed tables .

actually result :

connection refused .

clkao commented 11 years ago

virtualbox guest addon outdated? 可以裝 vagrant-vbguest plugin 解決

hychen commented 11 years ago

already fixed by ernest

commit 5456a351d72354c88b268a3a0c7decc4908d054c Author: moernest ernest@csie.org Date: Sat Aug 10 16:35:31 2013 +0800

what: revise pgrest binding address from 127.0.0.1 to 0.0.0.0
why: to fix cannot connect to pgrest server from vagrant issue