from fabric.api import *

env.user = 'ptigas'
env.hosts = ['hocus.io']

def deploy():
	with cd('repos/hocus'):
		run('git pull')

	with cd('repos/hocus/webapp'):
		run('composer install')

	with cd('repos/hocus'):
		run('cp -r webapp/* ~/Sites/hocus.io/')
		run('cp -r vendor ~/Sites/hocus.io/.')
		run('cp -r ~/Sites/hocus.io/settings.prod.php ~/Sites/hocus.io/settings.php')

@@ -206,24 +206,26 @@
 hocus'):
+%09%09
 %0A%09%09run('
 cp -r we
@@ -216,20 +216,41 @@
 %0A%09%09run('
-cp -
+rsync -rv --exclude=vendo
 r webapp
@@ -275,49 +275,10 @@
 o/')
-%0A
 %09%09
-run('cp -r vendor ~/Sites/hocus.io/.')
 %0A%09%09r

replace cp -c with rsync