Created
January 30, 2014 04:54
-
-
Save rtablada/8702844 to your computer and use it in GitHub Desktop.
A provisioning script for setting up nginx for an existing Laravel project with Vapobrash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo ">>> Updating Nginx" | |
# Chech that Nginx is installed | |
nginx -v > /dev/null 2>&1 | |
NGINX_IS_INSTALLED=$? | |
if [ $NGINX_IS_INSTALLED -eq 0 ]; then | |
# Change default vhost created | |
sed -i "s/root \/vagrant/root \/vagrant\/public/" /etc/nginx/sites-available/vagrant | |
sudo service nginx restart | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment