Use unicorn!!

Phusion is more work...

You can have a look in contrib there is a scrip that help deploy redmine
beside web2py with unicorn, so you can derive something for you need from
it. It works with 12.04.

Richard


On Sun, Apr 13, 2014 at 4:52 PM, Krzysztof Socha <kszy...@gmail.com> wrote:

> I am trying to setup (vanila) web2py on shared hosting with nginx and
> passenger with support for python. I put all the files from web2py folder
> in the folder expected by passenger, I created a file passenger_wsgi.py
> required by passenger, which I simlinked to wsgihandler.py (taken from the
> handlers dir to the dir where web2py.py resides). The result: nothing works
> - I get consistently 504 Gateway Timeout for every attempted connection.
>
> On the other hand, when I simply created a passenger_wsgi.py file that
> contained:
>
> def application(environ, start_response):
>   start_response('200 OK', [('Content-Type', 'text/plain')])
>   return [b"hello world!\n"]
>
> then everything works fine - i.e., I get the "hello world".
>
> I believe, it takes about one minute for the request to time-out... Does
> the web2py startup take so long?  When can/should I do to make it work?
>
> Krzysztof.
>
>
>
>
>   start_response('200 OK', [('Content-Type', 'text/plain')])
>   return [b"hello world!\n"]
>
> def application(environ, start_response):
>   start_response('200 OK', [('Content-Type', 'text/plain')])
>   return [b"hello world!\n"]
>
> def application(environ, start_response):
>   start_response('200 OK', [('Content-Type', 'text/plain')])
>   return [b"hello world!\n"]
>
> def application(environ, start_response):
>   start_response('200 OK', [('Content-Type', 'text/plain')]) def 
> application(environ, start_response):
>
>   start_response('200 OK', [('Content-Type', 'text/plain')])
>   return [b"hello world!\n"]
>
>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> 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 web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to