1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00
ihatemoney_ynh/fabfile.py

14 lines
330 B
Python
Raw Normal View History

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')