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 | |
| # This script will push your local repository's latest commit to a remote repository on your server. | |
| # It's useful for quickly pushing your local changes to deployment servers (Dev, Stage, Prod/Live, etc.) | |
| # | |
| # This file should be placed in your remote server's project's git hooks folder and named .git/hooks/post-receive. | |
| # Security reminder: Your web server should not allow access to the /.git folder URL | |
| # | |
| # Ensure that this script is executable: | |
| # $ chmod +x .git/hooks/post-receive |
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 80; | |
| listen [::]:80; | |
| server_name ~^(?<subdomain>\w+).dynamic.domain.com; | |
| root /var/www/vhost/_dynamic/$subdomain; | |
| access_log /var/log/nginx/dynamic-access.log; | |
| error_log /var/log/nginx/dynamic-error.log; | |
NewerOlder