पर तैनाती मैंने मूल चेरीपी ट्यूटोरियल (http://www.cherrypy.org/wiki/CherryPyTutorial) का पालन किया है। एक बात पर चर्चा नहीं की गई तैनाती है।चेरीपी (डेमन)
मैं चेरीपी ऐप को डिमन के रूप में कैसे लॉन्च कर सकता हूं और "इसके बारे में भूल सकता हूं"? सर्वर रीबूट होने पर क्या होता है?
क्या कोई मानक नुस्खा है? हो सकता है कि कुछ ऐसा हो जो सेवा स्क्रिप्ट (/etc/init.d/cherrypy ...)
धन्यवाद! जहाँ तक एक init के रूप में
> cherryd -h
Usage: cherryd [options]
Options:
-h, --help show this help message and exit
-c CONFIG, --config=CONFIG
specify config file(s)
-d run the server as a daemon
-e ENVIRONMENT, --environment=ENVIRONMENT
apply the given config environment
-f start a fastcgi server instead of the default HTTP
server
-s start a scgi server instead of the default HTTP server
-i IMPORTS, --import=IMPORTS
specify modules to import
-p PIDFILE, --pidfile=PIDFILE
store the process id in the given file
:
मुझे नहीं पता कि क्या एक 'spizouzou' है है, लेकिन चर पूरी तरह अनावश्यक है। बस कहें: 'डेमोनाइज़र (चेरीपी.एन्गिन)। सदस्यता() 'और प्लगइन जारी रहेगा क्योंकि' इंजन 'अब इसके लिए एक संदर्भ रखता है। –
@ ब्रैंडन क्रेग रोड्स सही है। एक चर बनाने की जरूरत नहीं है। – lysdexia
http://tools.cherrypy.org/wiki/WindowsService जैसा कि कहीं और बताया गया है, कोई भी उसी तरह की कोशिश के साथ एक विंडोज सेवा बना सकता है। पेज के नीचे लॉगिंग बिट्स पर ध्यान दें! वे महत्वपूर्ण हैं। – lysdexia