在Pycharm IDE中运行烧瓶应用程序

发布于 2025-01-31 12:47:20 字数 400 浏览 2 评论 0原文

您好Stackoverflow社区!

我有一个问题,我找不到任何答案。

因此,我有一个虚拟Debain 20.04服务器,我正在使用Putty访问它来托管烧瓶应用程序(使用UWSGI和NGINX)。 但是没有IDE,这很令人困惑。

所以我的问题是:是否有任何方法可以在Pycharm或Vscode等IDE中使用UWSGI和NGINX运行烧瓶应用程序

? ://www.vultr.com/docs/deploy-a-flask-website-nginx-with-nginx-with-uwsgi/“ rel =” nofollow noreferrer“> https://www.vultr.com/deploy-a -flask-website-nginx-with-uwsgi/

Hello stackoverflow community!

I have a question and I couldn't find any answers..

So I have a virtual Debain 20.04 Server and I'm accessing it using PuTTY to host my flask application (with uWSGI and nginx).
But it feels so confusing without an IDE.

So my question is: Are there any ways to run a Flask application using uWSGI and nginx in an IDE like Pycharm or vscode?

Deploy a flask application on Debain with uWSGI and nginx: https://www.vultr.com/docs/deploy-a-flask-website-on-nginx-with-uwsgi/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

过气美图社 2025-02-07 12:47:20

所以我的问题是:有什么方法可以在pycharm或vscode等IDE中使用UWSGI和NGINX运行烧瓶应用程序?

您可以使用多个Web服务器运行烧瓶应用程序,而无需使用Nginx或UWSGI。

对于本地开发,建议您使用像女服务员一样这很容易在本地运行基于WSGI协议的任何应用程序(无需服务器)。

您仍然可能学习一些终端。尽管从理论上讲,所有动作都可以通过IDE执行,但大多数教程都认为您需要了解Unix命令行基础知识,因为您将需要了解任何案例才能成为Python开发人员的富有成效的效率。通过IDE弄清楚如何做到这一点可能比学习使用Pycharm的集成终端进行开发需要花费更多的时间。

这是我在Pycharm IDE工作时与本地运行的女服务员(w/code hot Reload)一起工作的示例:

”

So my question is: Are there any ways to run a Flask application using uWSGI and nginx in an IDE like Pycharm or vscode?

You can run Flask application using multiple web servers, you do not need to use Nginx or uWSGI.

For a local development, it is recommend you run your application using a mini web server like Waitress that makes it is easy to run any WSGI protocol based application locally (no servers needed).

You are still likely to learn some terminal. Though in theory all actions can be done through an IDE, most of the tutorials assume that you need to know UNIX command line basics, because you are going to need to know those any case to be a productive as a Python developer. Figuring how to do it through an IDE will probably take more time than learning to use Pycharm's integrated terminal for the development.

Here is an example how I am working with a locally running Waitress server (w/code hot reload) when working in PyCharm IDE:

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文