Created
October 21, 2013 10:07
-
-
Save aganzha/7081515 to your computer and use it in GitHub Desktop.
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
.git/hooks/post-merge: | |
#!/bin/sh | |
/usr/local/node/bin/node /srv/web/app/makeCache.js; | |
~/autoupdate.sh: | |
#!/bin/bash | |
APP_DIR="/srv/web/app"; | |
cd $APP_DIR; | |
GIT_WORK_TREE=$APP_DIR; | |
GIT_DIR=$APP_DIR/.git; | |
# git reset --hard; | |
git pull; | |
/etc/nginx/mime.types | |
... | |
text/cache-manifest manifest; | |
application/font-woff woff; | |
/etc/nginx/sites-enabled/app.unitecontrol.com | |
server { | |
listen 80; | |
root /srv/web/app; | |
index index.html index.htm; | |
# Make site accessible from http://localhost/ | |
server_name app.unitecontrol.com; | |
error_page 404 /index.html; | |
location / { | |
# aganzha | |
add_header Cache-Control no-cache; | |
if_modified_since off; | |
add_header Last-Modified ""; | |
etag off; | |
# First attempt to serve request as file, then | |
# as directory, then fall back to displaying a 404. | |
try_files $uri $uri/ /index.html; | |
# Uncomment to enable naxsi on this location | |
# include /etc/nginx/naxsi.rules | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment