automated-deploy

Activate a virtualenv via fabric as deploy user

Activate a virtualenv via fabric as deploy user Question: I want to run my fabric script locally, which will in turn, log into my server, switch user to deploy, activate the projects .virtualenv, which will change dir to the project and issue a git pull. def git_pull(): sudo(‘su deploy’) # here i need to switch …

Total answers: 10