mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Add a fabfile to simplofy the deployment. Fixes #13
This commit is contained in:
parent
98f9d96a27
commit
d820a35c73
1 changed files with 13 additions and 0 deletions
13
fabfile.py
vendored
Normal file
13
fabfile.py
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
from fabric.api import *
|
||||
|
||||
env.hosts = ['lolnet.org:20002']
|
||||
env.shell = "/usr/local/bin/bash -c"
|
||||
env.path = "/usr/local/bin/:/usr/bin/"
|
||||
|
||||
def deploy():
|
||||
with cd('/usr/local/www/notmyidea.org/ihatemoney'):
|
||||
sudo('git pull', user="www")
|
||||
sudo('supervisorctl restart ihatemoney')
|
||||
|
||||
def whoami():
|
||||
run('/usr/bin/whoami')
|
Loading…
Reference in a new issue