Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joshuaestes/fabfiles

This is a collection of fabric files used for various different projects
https://github.com/joshuaestes/fabfiles

Last synced: 1 day ago
JSON representation

This is a collection of fabric files used for various different projects

Awesome Lists containing this project

README

        

Fabfiles
========

This is a library of files that allow you to use fabric with various projects you already have

Installation
============

cd ~
git clone git://github.com/JoshuaEstes/fabfiles.git
cd /var/www/website
ln -s ~/fabfiles/magento.py ~+/

The above example is for magento projects. Next you will need to create a fabfile.py

vi fabfile.py

Now enter some content in fabfile.py

from fabric.api import *
import magento

# The path we use to push code to
env.deploy_to = '/path/to/magento';

@task
def beta():
"Set the servers"
env.hosts = ['[email protected]:port']

@task
def production():
"Set the production servers"
env.hosts = ['[email protected]:port']

Now save and exit vim, run fab -l to view a list