From 0b94c3142b5070b44fa389be74ff2191a783af10 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 1 Apr 2018 04:54:23 -0500 Subject: [PATCH] Partially Fixes #177 Nginx default config interferes with dev domain. Still causes an issue with SSL redirect. (#178) --- vagrant/provision/once-as-root.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vagrant/provision/once-as-root.sh b/vagrant/provision/once-as-root.sh index 12165b1..311d77b 100644 --- a/vagrant/provision/once-as-root.sh +++ b/vagrant/provision/once-as-root.sh @@ -62,6 +62,10 @@ info "Enabling site configuration" ln -s /app/vagrant/nginx/app.conf /etc/nginx/sites-enabled/app.conf echo "Done!" +info "Removing default site configuration" +rm /etc/nginx/sites-enabled/default +echo "Done!" + info "Initailize databases for MySQL" mysql -uroot <<< "CREATE DATABASE yii2basic" mysql -uroot <<< "CREATE DATABASE yii2basic_test"