Deploy a project using Git push

后端 未结 19 958
囚心锁ツ
囚心锁ツ 2020-11-22 07:06

Is it possible to deploy a website using git push? I have a hunch it has something to do with using git hooks to perform a git reset --hard on the

19条回答
  •  攒了一身酷
    2020-11-22 07:54

    We use capistrano for managing deploy. We build capistrano to deploy on a staging server, and then running a rsync with all of ours server.

    cap deploy
    cap deploy:start_rsync (when the staging is ok)
    

    With capistrano, we can made easy rollback in case of bug

    cap deploy:rollback
    cap deploy:start_rsync
    

提交回复
热议问题