I am trying to configure fabfile to deploy my Django application.
I cannot understand why I am getting this error:
Fatal error: local () encountered an error (return code 2) while executing 'git commit -m' changed settings for prodserver '
$ fab create_branch_deploy_to_prodserver [localhost] run: git checkout prodserver_server [localhost] run: git merge master [localhost] run: cp settings_prodserver.py settings.py [localhost] run: git add settings.py [localhost] run: git commit -m 'changed settings for prodserver' Fatal error: local() encountered an error (return code 1) while executing 'git commit -m 'changed settings for prodserver'' Aborting.
Here, if the Fabric function:
def create_branch_deploy_to_prodserver(): local("git checkout prodserver_server") local("git merge master") local('cp settings_prodserver.py settings.py')
Is it possible to make git commit from Fabric?
git python fabric
Bryanwheelock
source share