diff --git a/README.md b/README.md index 7ebcfe6c..0fb46095 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,6 @@ vagrant up --provision ``` vagrant ssh -cd /vagrant bundle exec rackup -o 0.0.0.0 ``` diff --git a/vagrant/development.sh b/vagrant/development.sh index 48b79513..c4bff3be 100644 --- a/vagrant/development.sh +++ b/vagrant/development.sh @@ -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 +