mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-23 23:23:06 +11:00
Added pyc checks to fabfile.
This commit is contained in:
parent
a2767f20ec
commit
c281eea9bd
1 changed files with 6 additions and 1 deletions
7
fabfile.py
vendored
7
fabfile.py
vendored
|
@ -27,6 +27,7 @@ def push(remote=None, branch=None, reload=False):
|
|||
local('git push %s %s' % (remote, branch))
|
||||
with cd(env.proj_root):
|
||||
ve_run('git pull %s %s' % (remote, branch))
|
||||
rmpyc()
|
||||
if reload:
|
||||
restart()
|
||||
|
||||
|
@ -55,7 +56,11 @@ def restart():
|
|||
def flush():
|
||||
"""Flush memcache"""
|
||||
sshagent_run('/etc/init.d/memcached restart')
|
||||
|
||||
|
||||
def rmpyc():
|
||||
ve_run("find . -name '*.pyc' -exec rm {} \;")
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# Django
|
||||
# ============================================================================
|
||||
|
|
Loading…
Reference in a new issue