From d121c51584c54b5eba004df429aa47098ff84724 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 12 Jan 2013 18:11:44 -0500 Subject: [PATCH] update-deployment: Delete pyc files on deploy. (imported from commit 852258b1fd1b837807d11e5f4693012cd438c395) --- tools/update-deployment | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/update-deployment b/tools/update-deployment index 127d6507ec..46c68ceba1 100755 --- a/tools/update-deployment +++ b/tools/update-deployment @@ -45,6 +45,9 @@ subprocess.check_call(["git", "fetch"], stdout=open('/dev/null', 'w')) subprocess.check_call(["git", "reset", "--hard", refname], stdout=open('/dev/null', 'w')) #subprocess.check_call(["python", "manage.py", "syncdb"], stdout=open('/dev/null', 'w')) +# Delete all .pyc files to avoid old module files hanging around +subprocess.check_call(["find", ".", "-name", "*.pyc", "-delete"], stdout=open('/dev/null', 'w')) + # Restart the FastCGI process, which is running in a shell loop in screen. # TODO: real daemonization for cmd in ('runfcgi', 'runtornado'):