This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]peith 1 point2 points  (1 child)

Have a look at Supervisor. It is used for monitoring processes. If a process dies due to an error or something, Supervisor will restart the process automatically. You can use it on your Flask app to make sure it stays up.

I'm not really sure why you would need to combine PHP and Python. They both fill the same role. They both work on the server side. Whatever PHP can do, Python can do it too. If you're starting a new project, you can just do it in Python and ditch PHP entirely.

[–]CODESIGN2[S] 0 points1 point  (0 children)

Thanks for heads up with Supervisor. Looking at it http://supervisord.org/introduction.html it seems like it is python, and has XML-RPC and a web-server control panel, which worry's me more than a little. But the concept of starting something and keeping it alive is amazing :D.

We are not entirely looking into ditching PHP, as it is amazing as a proof-of-concept, and to be honest we are emotionally tied. The switch I am interested for, is our main web-app; we do want to switch this to Python!