This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from fabric.api import env, run | |
| from fabric.contrib.project import rsync_project | |
| try: | |
| from fabfile_local import * | |
| except ImportError, e: | |
| environments = { | |
| "dev": { | |
| "hosts": ["localhost"], | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from fabric.api import * | |
| from fabric.contrib import project as project | |
| SYNC_DIR = 'MY_DIRECTORY' | |
| def push(): | |
| local('rsync -avz --exclude fabfile.py --exclude fabfile.pyc . %s' % SYNC_DIR) | |
| def pull(): | |
| local('rsync -avz --exclude fabfile.py --exclude fabfile.pyc %s .' % SYNC_DIR) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #------------------------------------------------------------------------------- | |
| #Created by helmuthdu mailto: helmuthdu[at]gmail[dot]com | |
| #Inspired by Andreas Freitag, aka nexxx script | |
| #------------------------------------------------------------------------------- | |
| #This program is free software: you can redistribute it and/or modify | |
| #it under the terms of the GNU General Public License as published by | |
| #the Free Software Foundation, either version 3 of the License, or | |
| #(at your option) any later version. | |
| # |
NewerOlder