Merge pull request #300 from fmartingr/fmartingr/vagrant-little-details

Added two little details to Vagrant environment
This commit is contained in:
Kyle Drake 2019-06-30 19:04:49 -07:00 committed by GitHub
commit 92047adcdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -19,7 +19,6 @@ vagrant up --provision
```
vagrant ssh
cd /vagrant
bundle exec rackup -o 0.0.0.0
```

View file

@ -17,3 +17,16 @@ 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
# Create empty file for disposable email accounts
DISPOSABLE_EMAIL_PATH=/vagrant/files/disposable_email_blacklist.conf
if [ ! -f $DISPOSABLE_EMAIL_PATH ]; then
sudo su vagrant -c "touch $DISPOSABLE_EMAIL_PATH"
fi
# Automatically enter the project path on vagrant ssh
if grep -qv "cd /vagrant" /home/vagrant/.bashrc
then
sudo su vagrant -c "echo 'cd /vagrant' >> ~/.bashrc"
fi