Partially Fixes #177 Nginx default config interferes with dev domain. Still causes an issue with SSL redirect. (#178)

This commit is contained in:
Chris Smith 2018-04-01 04:54:23 -05:00 committed by Alexander Makarov
parent 561b98a039
commit 0b94c3142b

View File

@ -62,6 +62,10 @@ info "Enabling site configuration"
ln -s /app/vagrant/nginx/app.conf /etc/nginx/sites-enabled/app.conf ln -s /app/vagrant/nginx/app.conf /etc/nginx/sites-enabled/app.conf
echo "Done!" echo "Done!"
info "Removing default site configuration"
rm /etc/nginx/sites-enabled/default
echo "Done!"
info "Initailize databases for MySQL" info "Initailize databases for MySQL"
mysql -uroot <<< "CREATE DATABASE yii2basic" mysql -uroot <<< "CREATE DATABASE yii2basic"
mysql -uroot <<< "CREATE DATABASE yii2basic_test" mysql -uroot <<< "CREATE DATABASE yii2basic_test"