Running webapp2 outside of appengine, how to run it as a service / deamon?

I just finished my application and wanted to deploy it. But how to run my application as a service / deamon?

Various approaches were found in the Google search engine using some python, twisted libraries. Can I run a Python script as a service? . But I can’t understand how to do this.

Has anyone done this? Is there a better approach?

.. Fredrick

+5
source share
3 answers

As you want your application to run autonomously (if I understood correctly), you can handle this as with any other (non-web application).

, , , , -, ( ).

, " " ( ), script. , , . , python my_app.py & ( script), $!, pid , , " pid" kill ( SIGINT KeyboardInterrupt, ).

EDIT:

, , python main.py & , , /, (, Apache , ). , , , , , .

stdout/stderr, script (python main.py &> /path/to/app.log &) , logging.

+4

python script python.

, GNU . , .

, , , , , , . , , .

, , , , / , , , ... . , init ; "/", , .

, .

+1

All Articles