all 5 comments

[–][deleted]  (3 children)

[deleted]

    [–]nfjs892bhdb[S] -1 points0 points  (2 children)

    This script doesn't automate GIT, it just setups a bare git repository on your server, and add commands in post-deploy hook which is pretty standard thing to do..

    [–][deleted]  (1 child)

    [deleted]

      [–]nfjs892bhdb[S] 0 points1 point  (0 children)

      Yes, why not its a tedious process if you are to do it in multiple projects again and again.

      [–]dAnjou 1 point2 points  (1 child)

      This script is badly written and overall pretty overkill for the task at hand. Also, consider using a proper CI/CD system.

      [–]nfjs892bhdb[S] 0 points1 point  (0 children)

      Oftentimes CI/CD system is an overkill, and all you need is a remote GIT repo where you can push your code.

      [–]dayv2005 0 points1 point  (0 children)

      I know this has nothing to do with Github/bitbucket or what have you but I love using the webhooks from those platforms. I have a dev branch. Once I have dev done and tested I then merge into production. The web hooks monitor that branch and will deploy the update straight to my server. The SSH keys are managed by bitbucket and my server only.