Home  >  Q&A  >  body text

python - How to elegantly upgrade online Django code?

The existing deployment was previously uploaded to the server through scp, and the use of git was prohibited on the server. Then every time new code needs to be synchronized, scp is required. Then I thought about how to achieve a good implementation like git? The premise is that version control software cannot be used! ! !
Thanks.

我想大声告诉你我想大声告诉你2713 days ago710

reply all(3)I'll reply

  • 滿天的星座

    滿天的星座2017-05-16 13:22:58

    pycharm deployment ssh connection method remote deployment

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 13:22:58

    It’s easy not to use git. Your business code should still be hosted on a certain git platform, right? You can set up a git hooks. Whenever you have a release, the git platform will post it to the production server. After the server accepts the request, it will download the release zip package, decompress it, overwrite it and restart the service.

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-16 13:22:58

    Convert your code to ansible for one-click upgrade.

    reply
    0
  • Cancelreply