Skip to content

Instantly share code, notes, and snippets.

@netoisc
Created January 26, 2016 23:42
Show Gist options
  • Select an option

  • Save netoisc/0583f2490d634b46c10b to your computer and use it in GitHub Desktop.

Select an option

Save netoisc/0583f2490d634b46c10b to your computer and use it in GitHub Desktop.
# 1 - Modify Vagrantfile in order to allow portforwarding
config.vm.network "forwarded_port", guest: 5432, host: 7001
# 2-Edit postgresql.conf (Guest)
listen_addresses = '*'
#3 -Edit pg_hba.conf (you might want to tune this better)
host all all 0.0.0.0/0 md5
#4- restart the service
service postgresql restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment