关闭腻子后Flask应用无法运行 [英] Flask app not running after closing putty
问题描述
我正在尝试制作Flask Web应用程序.每当我关闭腻子时,网站就会停止运行,即使我对代码进行了任何更改,但如果不再次运行,它都不会反映在网络上.
当关闭腻子时,您实际上也在关闭应用程序.如果即使关闭腻子也要访问它,则应具有"tmux安装在您的系统上":
pip install tmux
安装后,通过以下方式创建新的tmux会话
tmux new -s myname
在此会话下,运行您想要的任何代码(您的情况下为烧瓶应用程序),关闭油灰,您仍应能够访问正在运行的应用程序.您可以通过以下方式附加到会话中以停止应用程序
tmux a -t myname
或者您可以简单地终止您的tmux会话.有关更多详细信息,请检查 https://github.com/tmux/tmux/wiki >
I am trying to make a flask web app. whenever i close my putty the website stops running and even if I make any change in the code then without running again it does not reflect on the web.
When you close putty, you are virtually closing down your app also, If you want to access it even when you close down your putty, you should have "tmux installed on you system":
pip install tmux
Once installed, create a new tmux session by
tmux new -s myname
Under this session run any code you want (flask app in your case), close the putty and you should still be able to access your app running. You can attach to your session to stop the app via
tmux a -t myname
or you can simply kill your tmux session. For more details please check https://github.com/tmux/tmux/wiki
这篇关于关闭腻子后Flask应用无法运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!