diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-10 01:31:59 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-10 01:31:59 +0200 |
| commit | d820a35c739a5c28cfcbd30f23a1a733bb97c7b1 (patch) | |
| tree | f0f94ea166f28fba4ba0e86dd1a85d7f87ede6c5 /fabfile.py | |
| parent | 98f9d96a27692632be9b3e90711ff0110d9eb054 (diff) | |
| download | ihatemoney-mirror-d820a35c739a5c28cfcbd30f23a1a733bb97c7b1.zip ihatemoney-mirror-d820a35c739a5c28cfcbd30f23a1a733bb97c7b1.tar.gz ihatemoney-mirror-d820a35c739a5c28cfcbd30f23a1a733bb97c7b1.tar.bz2 | |
Add a fabfile to simplofy the deployment. Fixes #13
Diffstat (limited to 'fabfile.py')
| -rw-r--r-- | fabfile.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fabfile.py b/fabfile.py new file mode 100644 index 0000000..41f7ddc --- /dev/null +++ b/fabfile.py @@ -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') |
