django实时更新前端
I’ve recently built a web app (see it here) using Django and deployed it through DigitalOcean.
我最近使用Django构建了一个Web应用程序( 在此处查看 ),并通过DigitalOcean进行了部署。
There are many wonderful reasons to use DigitalOcean, but updating is not one of them. Because it is a cloud hosting provider and not a PaaS like AWS Elastic Beanstalk, the updating process is 100% your problem.
使用DigitalOcean的原因很多,但更新不是其中之一。 因为它是云托管提供商,而不是像AWS Elastic Beanstalk这样的PaaS, 所以更新过程100%就是您的问题 。
Plus, if you’ve also deployed with DigitalOcean, you might have realized that there are very few resources on how to run updates. That’s where I come in.
另外,如果您还与DigitalOcean一起部署,则可能已经意识到关于如何运行更新的资源很少。 那就是我进来的地方。
I’ve written about this process in my detailed walkthrough of how I built my website (which you can read below if you’d like to), but I wanted to elaborate on this to help fill in the knowledge gap for beginners like myself.
我已经在我如何构建网站的详细演练中写过有关此过程的文章(如果您愿意,可以在下面阅读),但是我想对此进行详细说明,以帮助填补像我这样的初学者的知识空白。
If you’re deploying elsewhere than DigitalOcean, updating is much easier, and here are some pages that may be relevant to you:
如果要在DigitalOcean之外的其他地方进行部署,则更新会容易得多,以下一些页面可能与您相关:
AWS Elastic Beanstalk (Co