Improvements & fixes for vagrant staging

This commit is contained in:
Kyle Drake 2016-08-09 20:04:57 -07:00
parent e6d2e4d29b
commit b36a062eb4
7 changed files with 17 additions and 11 deletions

View file

@ -10,4 +10,10 @@ ufw allow 9292
sudo su postgres -c "createuser -d vagrant"
sudo su vagrant -c "createdb neocities"
sudo su vagrant -c "createdb neocities_test"
sudo su vagrant -c "createdb neocities_test"
sudo sh -c 'echo "local all postgres trust" > /etc/postgresql/9.3/main/pg_hba.conf'
sudo sh -c 'echo "local all all trust" >> /etc/postgresql/9.3/main/pg_hba.conf'
sudo sh -c 'echo "host all all 127.0.0.1/32 trust" >> /etc/postgresql/9.3/main/pg_hba.conf'
sudo sh -c 'echo "host all all ::1/128 trust" >> /etc/postgresql/9.3/main/pg_hba.conf'
sudo service postgresql restart