Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 371 Bytes
from fabric.api import *
env.hosts = ['']
remote_repo = '/srv/www/projects/apps/fountains'
def deploy():
""" Deploys local version to server and merges into deploy branch """
local('git push server master')
with cd(remote_repo):
run('git merge master')
def restart():
""" Restart Apache """
sudo('service apache2 restart')