Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django code changes not reflecting on production server

I changed a .py file and changes reflected on local dev. server for Django after deleting .pyc. The production server does not even have .pyc for this specific file. Tried touching apache wsgi and restarting apache on prod. server but no luck. Even deleting this .py file makes application work the same. There is memcached installed but I don't have much idea how it caches, there is .git as well and 5 servers are hosting - one main, 4 load balancers.

Regards !

like image 815
Nikhil Khullar Avatar asked Feb 08 '13 10:02

Nikhil Khullar


2 Answers

Are 100% sure you are looking at the right server you are making the changes to? I know that sounds stupid but, why don't you stop Apache, can you still run the page then? IF you can then you definitely don't have the correct server.

If not, next try reloading Apache (thats different from restarting).

sudo service apache2 reload

If this still does not work then post your Apache setup, if must be looking on the wrong folder to the one your pushing to.

like image 185
Glyn Jackson Avatar answered Oct 18 '22 14:10

Glyn Jackson


You have to restart your server (WSGI, UWSGI or whatever your use on production environment)

like image 31
Igor Avatar answered Oct 18 '22 16:10

Igor