Sorry, not a 503 error but 504: Gateway Timeout


On Nov 19, 10:53 pm, freevryheid <[email protected]> wrote:
> Thanks, this helps a lot. Could someone please point out the error in
> my script if any - I can't get it running using SCGI:
>
> script.py:
>
> #!/usr/bin/python
>
> import web
> web.wsgi.runwsgi = lambda func, addr=('127.0.0.1',8080):
> web.wsgi.runscgi(func, addr)
>
> urls = ( '/', 'hello')
>
> class hello:
>     def GET(self):
>         return "Hello world!"
>
> if __name__ == "__main__":
>         web.run(urls, globals())
>
> I got this mostly from:http://slav0nic.org.ua/entry/141
>
> I'm getting a 503 - Service Unavailable error.
> + I've chmoded 755 both runner.sh and script.py
> + firewall is disabled.
>
> Thx
>
> On Nov 19, 5:05 am, Jędrzej Nowak <[email protected]> wrote:
>
> > Generally, that's normal python setup. For example wklej.to works on
> > Cherokee + webpy.org
>
> > "runner.sh":
> > ---
> > #!/bin/bash
>
> > nohup python2.4 /path/to/script.py 127.0.0.1:8003 scgi &
> > ---
> > give execute permissions ( chmod +x ... )
>
> > "script.py"
> > normal webpy application
>
> > define new information source with Interpreter runner.sh ( full path )
> > connection 127.0.0.1:8003
>
> > save, and done.
>
> > Greetings
> > Jędrzej Nowak
>
> > On Thu, Nov 19, 2009 at 4:51 AM, Andre Smit <[email protected]> wrote:
> > > Please post a tutorial or cookbook example to setup cherokee with webpy.
>
> > > Thanks
>
> > > Andre
>
> > > _______________________________________________
> > > Cherokee mailing list
> > > [email protected]
> > >http://lists.octality.com/listinfo/cherokee
>
> > _______________________________________________
> > Cherokee mailing list
> > [email protected]http://lists.octality.com/listinfo/cherokee
>
> _______________________________________________
> Cherokee mailing list
> [email protected]http://lists.octality.com/listinfo/cherokee
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to