bump version of Flask-Micropub
This commit is contained in:
parent
d3a5edad46
commit
4a59ca58c7
2 changed files with 36 additions and 1 deletions
35
fabfile.py
vendored
Normal file
35
fabfile.py
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
from fabric.api import local, prefix, cd, run, env, lcd
|
||||
|
||||
env.hosts = ['orin.kylewm.com']
|
||||
|
||||
REMOTE_PATH = '/srv/www/kylewm.com/woodwind'
|
||||
|
||||
|
||||
def commit():
|
||||
local("git add -p")
|
||||
local("git diff-index --quiet HEAD || git commit")
|
||||
|
||||
|
||||
def push():
|
||||
local("git push origin master")
|
||||
|
||||
|
||||
def pull():
|
||||
with cd(REMOTE_PATH):
|
||||
run("git pull origin master")
|
||||
run("git submodule update")
|
||||
|
||||
|
||||
def restart():
|
||||
with cd(REMOTE_PATH):
|
||||
with prefix("source venv/bin/activate"):
|
||||
run("pip install -r requirements.txt")
|
||||
# run("uwsgi --reload /tmp/redwind.pid")
|
||||
run("supervisorctl restart woodwind woodwind-celery")
|
||||
|
||||
|
||||
def deploy():
|
||||
commit()
|
||||
push()
|
||||
pull()
|
||||
restart()
|
Loading…
Add table
Add a link
Reference in a new issue