开发者

Running an infinite loop script that sends data to my Flask web app

I have a script that I made that is basically a while True loop. I run it inside the same folder as my Flask app in development mode, and it generates files which my Flask app gets the data from and displays on the frontend. I have to restart the script pretty rarely, otherwise it works great. Now, how would I do this in production mode? Do 开发者_运维技巧I have to run the script separately on the cloud (AWS, etc.), but then how would it send the files to my Flask backend? Is there any better way of doing this?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜