0
장고 배포를 위해 CherryPy 서버를 사용하고 있습니다. 특히 지침 here을 사용하고 있습니다. 이 편리 장고 manage.py 명령을 내 Cherrypy 서버를 패키지하고 다음 옵션 제공 : 다음과 같이장고를위한 체리 피 서버 Daemonize
[email protected] /home/Protrak# ./manage.py runcpserver help
Run this project in a CherryPy webserver. To do this, CherryPy from
http://www.cherrypy.org/ is required.
runcpserver [options] [cpserver settings] [stop]
Optional CherryPy server settings: (setting=value)
host=HOSTNAME hostname to listen on
Defaults to localhost
port=PORTNUM port to listen on
Defaults to 8088
server_name=STRING CherryPy's SERVER_NAME environ entry
Defaults to localhost
daemonize=BOOL whether to detach from terminal
Defaults to False
pidfile=FILE write the spawned process-id to this file
workdir=DIRECTORY change to this directory when daemonizing
threads=NUMBER Number of threads for server to use
ssl_certificate=FILE SSL certificate file
ssl_private_key=FILE SSL private key file
server_user=STRING user to run daemonized process
Defaults to www-data
server_group=STRING group to daemonized process
Defaults to www-data
Examples:
Run a "standard" CherryPy server server
$ manage.py runcpserver
Run a CherryPy server on port 80
$ manage.py runcpserver port=80
Run a CherryPy server as a daemon and write the spawned PID in a file
$ manage.py runcpserver daemonize=true pidfile=/var/run/django-cpserver.pid
내가이 서버를 실행
[email protected] /home/Protrak# ./manage.py runcpserver host=0.0.0.0
을 그리고 fine.However 내가 다음 시도 완벽하게 작동
[email protected] /home/Protrak# ./manage.py runcpserver host=0.0.0.0 daemonize=True
을하고 그냥 터미널에서 연결이 끊어하지만 백그라운드 프로세스가 spawned.I이 둘 사이트에 액세스 할 수없고 내가 홍보로 참조 할 수 없습니다 다음으로 디먼 화하기 서버에있는 ocess. 내가 뭘 잘못하고 있니?
이것은 도움이됩니다. 내일 체크 아웃 해 봅시다. – Amistad