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()
|
|
@ -1,6 +1,6 @@
|
||||||
Flask==0.10.1
|
Flask==0.10.1
|
||||||
Flask-Login==0.2.11
|
Flask-Login==0.2.11
|
||||||
Flask_Micropub==0.1.2
|
Flask_Micropub==0.1.3
|
||||||
Flask-SQLAlchemy==2.0
|
Flask-SQLAlchemy==2.0
|
||||||
Jinja2==2.7.3
|
Jinja2==2.7.3
|
||||||
MarkupSafe==0.23
|
MarkupSafe==0.23
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue