mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Merge pull request #300 from fmartingr/fmartingr/vagrant-little-details
Added two little details to Vagrant environment
This commit is contained in:
commit
92047adcdb
2 changed files with 13 additions and 1 deletions
|
@ -19,7 +19,6 @@ vagrant up --provision
|
|||
|
||||
```
|
||||
vagrant ssh
|
||||
cd /vagrant
|
||||
bundle exec rackup -o 0.0.0.0
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue