AlterEgo
old web2py blog
Useful Links
List all entries
Book
Interactive Examples
F.A.Q.
Free Applications
Plugins
Recipes
Demo of Admin Interface
Semantic web extension
Some of the information here may be outdated, please check the book instead
Edit page
Title:
Security Code:
Body:
(use
this
wiki markup)
**Thank you Limodou for all your work on this** web2py supports windows service install/start/stop now in source version. If you want to use it, you should create an options.py (for default usage) with startup parameters or specify an option file with -L <optionsfile> parameter in the command line. The options.py could be like this: import socket, os ip = socket.gethostname() port = 80 password = '<recycle>' ### <recycle> means use the previous password pid_filename = 'httpserver.pid' log_filename = 'httpserver.log' ssl_certificate = '' ### path to certificate file ssl_private_key = '' ### path to private key file numthreads = 10 server_name = socket.gethostname() request_queue_size = 5 timeout = 10 shutdown_timeout = 5 folder = os.getcwd() And you don't need to create options.py manually, there is already an options_std.py in web2py folder, so you can copy it and name it options.py or just specify it in command line via -L parameter. then run: python2.5 web2py.py -W install #install web2py as a windows service python2.5 web2py.py -W start -L options.py #if you don't give -L parameter, the default configure file will be options.py python2.5 web2py.py -W stop
© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by
web2py
- design derived from a theme by
the earlybird
The content of this book is released under the
Artistic License 2.0
- Modified content cannot be reproduced.