Hot answers tagged django
Protecting Python code from IP theft or other snooping is next to impossible. I have researched this extensively for a product we build at my day job. If you need to protect this code, you'll either need to host it off site or port it to a compiled language.
according to article at digitalocean instead of GIT_WORK_TREE you need a combo of --work-tree and --git-dir options: git --work-tree=/var/www/html --git-dir=/home/demo/proj checkout -f and for post-receive script it ends up being slightly different construct than what you have: #!/bin/bash while read oldrev newrev ref do if [[ $ref =~ .*/master$ ]]; ...
Suggestion: #!/bin/sh echo echo "*** Moving to Live ***" echo cd /path/to/project || exit unset GIT_DIR git pull origin master echo echo "*** Pulling to Live ***" echo /etc/init.d/nginx restart #exec git-update-server-info Took from my server and works well for me. Don't forget to fix the path, the ...
Only top voted, non community-wiki answers of a minimum length are eligible