Fabric
"""
Deploys the branch to the Remote Host
$ fab deploy:staging
deploy:live
"""
@hosts([ip1, ip2])
def deploy():
with cd(env.path):
sudo("fab pull")
sudo("composer update --prefer-dist")
sudo('rm -rf app/cache/*%%.php');
sudo('rm -rf app/cache/*.volt.php');
sudo("chown -R www-data:www-data *")