Hey René,
On Thu, Jan 27, 2011 at 7:20 PM, René 'Necoro' Neumann <[email protected]> wrote:
> If you pass the script to spawn-fcgi via the "-f", it expects a shell
> script (which for obvious reasons has hard times with the python syntax ^^)
>
> So the way to go is:
>
> % spawn-fcgi -a ... -p ... -- /home/lbfm/www/lbfm_web/index.py
>
> (Note the double dash in front of the path. It is required and must be
> AFTER the other arguments to spawn-fcgi)
>
I did what you told me, I ran the app as:
% spawn-fcgi -a 127.0.0.1 -p 9002 -- /home/lbfm/www/lbfm_web/index.py
and I still get the error:
: No such file or directory
spawn-fcgi.c.218: child exited with: 127, Key has expired
but then, I tried this:
% spawn-fcgi -a 127.0.0.1 -p 9002 -- `which python`
/home/lbfm/www/lbfm_web/index.py
spawn-fcgi.c.197: child spawned successfully: PID: 32332
but when I try to visualizate the app via browser, it doesn't
recognize the /static/, so the css/js/imgs doesn't appears, and I have
already configured nginx for this:
location /static/ {
root /home/lbfm/www/lbfm_web/static;
if (-f $request_filename){
rewrite ^/static/(.*)$ /static/$1 break;
}
}
I really no idea what happens here, I have other webpy app with the
same __main__ section:
if __name__ == "__main__":
web.wsgi.runwsgi = lambda func, addr=None: web.wsgi.runfcgi(func, addr)
app.run()
and I launch it as:
% spawn-fcgi -f /home/lbfm/www/visualdep_web/index.py -a 127.0.0.1 -p 9001
spawn-fcgi.c.197: child spawned successfully: PID: 32423
You can see that I can run successfully this app.
Regards
--
http://crosvera.blogspot.com
Carlos Ríos V.
Estudiante de Ing. (E) en Computación e Informática.
Universidad del Bío-Bío
VIII Región, Chile
Linux user number 425502
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.