需求,更新靜態文件更新html
cd /data/test && sudo /usr/bin/git pull
cd /data/test&& sudo /usr/bin/git stash && sudo /usr/bin/git pull && sudo /usr/bin/git stash clean
cd /data/test && sudo /usr/bin/git branch && sudo /usr/bin/git shownginx
server { listen 80; server_name carlton.com; location ~ ^/ { root /data/test/; index index.html index.htm; } location ~ /\.ht { deny all; } access_log /data/logs/nginx/test_access.log mainlog; error_log /data/logs/nginx/test_error.log; }