mirror of
https://github.com/nikdoof/pacmanager.git
synced 2025-12-13 07:32:15 +00:00
Add some more fabric commands
This commit is contained in:
9
fabfile.py
vendored
9
fabfile.py
vendored
@@ -32,8 +32,9 @@ def chdir(path):
|
|||||||
if env.local:
|
if env.local:
|
||||||
with lcd(path):
|
with lcd(path):
|
||||||
yield
|
yield
|
||||||
with cd(path):
|
else:
|
||||||
yield
|
with cd(path):
|
||||||
|
yield
|
||||||
|
|
||||||
@_contextmanager
|
@_contextmanager
|
||||||
def virtualenv():
|
def virtualenv():
|
||||||
@@ -62,6 +63,10 @@ def runserver(port=3333):
|
|||||||
ip = runcmd("""ip addr list eth0 |grep "inet " |cut -d' ' -f6|cut -d/ -f1""", capture=True)
|
ip = runcmd("""ip addr list eth0 |grep "inet " |cut -d' ' -f6|cut -d/ -f1""", capture=True)
|
||||||
manage('runserver %s:%s' % (ip, port))
|
manage('runserver %s:%s' % (ip, port))
|
||||||
|
|
||||||
|
@task
|
||||||
|
def collectstatic():
|
||||||
|
manage('collectstatic --link --noinput')
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def syncdb():
|
def syncdb():
|
||||||
manage('syncdb --migrate --noinput')
|
manage('syncdb --migrate --noinput')
|
||||||
|
|||||||
Reference in New Issue
Block a user