Skip to content

Instantly share code, notes, and snippets.

View sayantanbagchi88's full-sized avatar

Sayantan Bagchi sayantanbagchi88

  • ChikPea Inc
  • kolkata INDIA
View GitHub Profile
@sayantanbagchi88
sayantanbagchi88 / fabfile.py
Created January 11, 2016 13:50 — forked from elliottb/fabfile.py
Example Python Fabric deployment script. Deploys code from a deployment box to a remote host. Usage from command line on the deployment box: fab deploy.
from fabric.api import local, run, env, put
import os, time
# remote ssh credentials
env.hosts = ['10.1.1.25']
env.user = 'deploy'
env.password = 'XXXXXXXX' #ssh password for user
# or, specify path to server public key here:
# env.key_filename = ''
@sayantanbagchi88
sayantanbagchi88 / fabfile.py
Created January 8, 2016 12:54 — forked from fiee/fabfile.py
fabric fabfile.py for deployment of django apps on Debian servers
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
fabfile for Django
------------------
see http://morethanseven.net/2009/07/27/fabric-django-git-apache-mod_wsgi-virtualenv-and-p/
modified for fabric 0.9/1.0 by Hraban (fiëé visuëlle)
several additions, corrections and customizations, too