且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从本地系统在远程服务器上运行Flask应用程序?

更新时间:2023-10-14 11:21:34

问题不是来自Flask,

The problem is not from Flask,

app.run(host='0.0.0.0')中指定的IP必须由您的服务器拥有.

The IP specified in app.run(host='0.0.0.0') must be owned by your server.

如果要在远程服务器上启动Flask,请使用SSH在该服务器上部署代码,然后使用远程会话运行它.

If you want to launch Flask on remote server, deploy the code on that server using SSH and run it using a remote session.