dudarev / photoplanet

Project for learnpython.dn.ua
http://dudarev.github.io/photoplanet/
6 stars 7 forks source link

Set up Ansible scripts to deploy on a given machine #9

Closed dudarev closed 9 years ago

dudarev commented 10 years ago

Following instructions at

https://gist.github.com/dudarev/4348689#set-up-django-nginx-and-uwsgi

set up Ansible scripts to deploy photoplanet on VM.

Test with local Vagrant instance.

Ku-Al commented 10 years ago
dudarev commented 10 years ago

For stand-alone server deployment I'm referring to this settings file:

https://github.com/dudarev/photoplanet/blob/master/photoplanet/photoplanet/settings/donetskogram.py

Ku-Al commented 10 years ago

Starting the application causes an error uwsgi: In /home/photoplanet/photoplanet/logs/uwsgi.log Traceback (most recent call last): self.method = environ['REQUEST_METHOD'].upper() KeyError: u'REQUEST_METHOD' [pid: 15270|app: 0|req: 3/4]() {14 vars in 359 bytes} [Wed Sep 10 17:23:22 2014] => generated 0 bytes in 0 msecs ( 500) 0 headers in 0 bytes (0 switches on core 0)

Ku-Al commented 10 years ago

Fix KeyError