First pass at fabfile -- added dependencies: fabric, boto
parent
d5d26e356f
commit
02e8bf268c
|
@ -0,0 +1,46 @@
|
|||
from fabric.api import run, local, env, cd
|
||||
|
||||
env.use_ssh_config = True
|
||||
#env.hosts = ['ry-dev']
|
||||
|
||||
# fab rydev list_dir
|
||||
# http://aws.amazon.com/articles/3997
|
||||
|
||||
key_path = '/Users/raymondyee/.ssh/id_rsa'
|
||||
|
||||
def rydev():
|
||||
env.hosts = ['ec2-107-21-211-134.compute-1.amazonaws.com']
|
||||
env.user = 'ubuntu'
|
||||
env.key_filename = key_path
|
||||
|
||||
def get_dump():
|
||||
run("./dump.sh > unglue.it.sql ")
|
||||
run("gzip -f unglue.it.sql")
|
||||
local("scp web1:/home/ubuntu/unglue.it.sql.gz .")
|
||||
local("gunzip -f unglue.it.sql.gz")
|
||||
|
||||
def selenium():
|
||||
with cd('/Users/raymondyee/D/Document/Gluejar/Gluejar.github/regluit'):
|
||||
local("java -jar test/selenium-server-standalone-2.20.0.jar > selenium-rc.log 2>&1 &")
|
||||
|
||||
def test():
|
||||
local("django-admin.py test core api frontend payment")
|
||||
|
||||
def fetch():
|
||||
local("git fetch")
|
||||
|
||||
def list_dir():
|
||||
code_dir = '/home/ubuntu/regluit'
|
||||
with cd(code_dir):
|
||||
run("ls")
|
||||
|
||||
def list_dir2():
|
||||
code_dir = '/opt/regluit'
|
||||
with cd(code_dir):
|
||||
run("ls")
|
||||
|
||||
def hello(name="world"):
|
||||
print("Hello %s!" % name)
|
||||
|
||||
def host_type():
|
||||
run('uname -s')
|
|
@ -19,4 +19,6 @@ freebase
|
|||
django-endless-pagination
|
||||
django-selectable
|
||||
pytz
|
||||
django-notification
|
||||
django-notification
|
||||
boto
|
||||
fabric
|
|
@ -4,6 +4,7 @@
|
|||
# some later libraries
|
||||
amqplib==1.0.2
|
||||
anyjson==0.3.1
|
||||
boto==2.3.0
|
||||
celery==2.4.6
|
||||
certifi==0.0.6
|
||||
django-celery==2.4.2
|
||||
|
@ -33,15 +34,17 @@ mimeparse==0.1.3
|
|||
MySQL-python==1.2.3
|
||||
nose==1.1.2
|
||||
oauth2==1.5.211
|
||||
pycrypto==2.5
|
||||
pyparsing==1.5.6
|
||||
python-dateutil==1.5
|
||||
python-digest==1.7
|
||||
python-openid==2.2.5
|
||||
pytz==2011n
|
||||
pytz==2012b
|
||||
Pyzotero==0.9.4
|
||||
rdflib==3.1.0
|
||||
redis==2.4.11
|
||||
requests==0.9.1
|
||||
selenium==2.16.0
|
||||
selenium==2.20.0
|
||||
South==0.7.3
|
||||
wsgiref==0.1.2
|
||||
ssh==1.7.13
|
||||
wsgiref==0.1.2
|
Loading…
Reference in New Issue