Thanks! I can see the issue you're talking about, and decided to add a
little more to it. The command line starts gluon\widget.py, so I've copied
some of the code from it that works and added it to winservice.py to fix
the issue. Specifically:
self.server = main.HttpServer(
ip=options.ip,
port=options.port,
...
To:
if not options.interfaces:
(ip, port) = (options.ip, int(options.port))
else:
first_if = options.interfaces[0]
(ip, port) = first_if[0], first_if[1]
self.server = main.HttpServer(
ip=ip,
port=port,
interfaces=options.interfaces,
...
Thanks again.
On Friday, April 5, 2013 2:20:02 PM UTC-7, Niphlod wrote:
>
> I's say using nssm.exe will spare you some headaches.
>
> It seems that there are a few errors in winservice.py
>
> You can try to patch it.....
> self.server = main.HttpServer(
> ip=options.ip,
> port=options.port,
> password=options.password,
> pid_filename=options.pid_filename,
> log_filename=options.log_filename,
> profiler_filename=options.profiler_filename,
> ssl_certificate=options.ssl_certificate,
> ssl_private_key=options.ssl_private_key,
> min_threads=options.minthreads,
> max_threads=options.maxthreads,
> server_name=options.server_name,
> request_queue_size=options.request_queue_size,
> timeout=options.timeout,
> shutdown_timeout=options.shutdown_timeout,
> path=options.folder,
> * interfaces=options.interfaces*
> )
> additions in *bold*
>
> and include
> ip = '127.0.0.1'
> port = 8000
>
>
> in the config file. In theory, when *interfaces* is passed it should
> override whatever ip or port you pass
>
>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.