Skip to content

Instantly share code, notes, and snippets.

var https = require('https');
// CONFIGURATION #######################################################################################################
var token = '';
var delay = 300; // delay between delete operations in millisecond
// GLOBALS #############################################################################################################
var baseApiUrl = 'https://slack.com/api/';
@evangs
evangs / gist:7139702
Last active December 26, 2015 10:49
fabfile for deploying my site + output
from fabric.api import sudo
def deploy():
# stop gunicorn
sudo("supervisorctl stop ehom")
# update site files
sudo('cd /home/http/ehom/ehom-site; git reset --hard HEAD; git pull')
# update dependencies