restart-server: Call fill_memcached_caches via more direct path.

The previous version ended up being (at least sometimes) wrong after
the recent deployment system changes.

(imported from commit dec3beb1b1bf8b9c9ad6820b93b0a5d730d020e8)
This commit is contained in:
Tim Abbott 2013-04-16 16:58:49 -04:00
parent 350cf79ba0
commit 6ab480d9c6
1 changed files with 1 additions and 2 deletions

View File

@ -37,8 +37,7 @@ except:
traceback.print_exc() traceback.print_exc()
logging.info("Refilling memcached caches") logging.info("Refilling memcached caches")
subprocess.check_call(["python", os.path.join(os.path.dirname(__file__), "..", "manage.py"), subprocess.check_call(["python", "./manage.py", "fill_memcached_caches"])
"fill_memcached_caches"])
logging.info("Done!") logging.info("Done!")
print OKGREEN + "Application restarted successfully!" + ENDC print OKGREEN + "Application restarted successfully!" + ENDC