mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
update the fabric script with the last arch
This commit is contained in:
parent
6a544855d7
commit
2c1fe198e5
1 changed files with 7 additions and 7 deletions
14
fabfile.py
vendored
14
fabfile.py
vendored
|
@ -1,13 +1,13 @@
|
||||||
from fabric.api import *
|
from fabric.api import env, cd, sudo, run
|
||||||
|
|
||||||
|
env.hosts = ['sites.lolnet.lan']
|
||||||
|
|
||||||
env.hosts = ['lolnet.org:20002']
|
|
||||||
env.shell = "/usr/local/bin/bash -c"
|
|
||||||
env.path = "/usr/local/bin/:/usr/bin/"
|
|
||||||
|
|
||||||
def deploy():
|
def deploy():
|
||||||
with cd('/usr/local/www/notmyidea.org/ihatemoney'):
|
with cd('/home//www/ihatemoney.org/code'):
|
||||||
sudo('git pull', user="www")
|
sudo('git pull', user="www-data")
|
||||||
sudo('supervisorctl restart ihatemoney')
|
sudo('supervisorctl restart ihatemoney.org')
|
||||||
|
|
||||||
|
|
||||||
def whoami():
|
def whoami():
|
||||||
run('/usr/bin/whoami')
|
run('/usr/bin/whoami')
|
||||||
|
|
Loading…
Reference in a new issue