This file contains hidden or 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
server { | |
listen 443; | |
server_name DOMAIN; | |
root /Users/stan/Dropbox/_LocalServer/DOMAIN/public_html/public; | |
access_log /Users/stan/Dropbox/_LocalServer/DOMAIN/logs/access.log; | |
error_log /Users/stan/Dropbox/_LocalServer/DOMAIN/logs/error.log; | |
ssl on; | |
ssl_certificate ssl/localhost.crt; |
This file contains hidden or 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
#!/bin/bash | |
# Delete vhost / site from nginx on macOS | |
DOMAIN=$1 | |
SITES_AVAILABLE="/usr/local/etc/nginx/sites-available" | |
SITES_ENABLED="/usr/local/etc/nginx/sites-enabled" | |
read -p "Are you sure you want to delete $DOMAIN? " -n 1 -r | |
echo # (optional) move to a new line | |
if [[ $REPLY =~ ^[Yy]$ ]] |
This file contains hidden or 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
#!/bin/bash | |
# Quickly add a local deployment / nginx vhost on macOS | |
# Optionally with a laravel install. | |
# | |
# Usage | |
# ./site_add.sh testdomain.local | |
DOMAIN=$1 | |
SITES_AVAILABLE="/usr/local/etc/nginx/sites-available" | |
SITES_ENABLED="/usr/local/etc/nginx/sites-available" |