05 Mar'12

Git deployment

Get some inspiration here first: http://stackoverflow.com/questions/279169/deploy-a-project-using-git

If it seems to hard for you, use this example: http://ryanflorence.com/simple-git-deployment/.

There is a middle method, but I failed to implement it successfully: http://caiustheory.com/automatically-deploying-website-from-remote-git-repository

Take a look at http://www.dejaaugustine.com/2011/05/leveraging-git-as-a-full-fledged-web-development-tool/ and http://deadlytechnology.com/web-development/deploy-websites-with-git/ as well.

Continue reading

Django fails with DEBUG=False on production

First, be sure to eliminate this issue: http://stackoverflow.com/a/4975210

Next, enable logging of all events. That will save you plenty of time.

Next, be sure to include both 404.html and 500.html in the root of your templates’ folder. See here and here for details.

If you are using nginx, be sure to include correct fastcgi configuration file: http://softwaremaniacs.org/forum/django/9093/ (post before ...

Continue reading

Test nginx Configuration File

If there is a time when it becomes necessary to test out a nginx.conf file prior to attempting to use it (IOW on a live/production system) here is a handy little command.

user@machine ~> nginx -t -c /etc/nginx/nginx.conf

Continue reading