Shoot me an email if you run into trouble incorporating later and I'll help 
you out. I use Nginx with FastCGI for website stuff and Gunicorn when I am 
doing Socket.IO or Websockets. You can open another terminal and use tail 
-f <filename> to watch the apache logs live but this is not the best way to 
debug. If you are using fastcgi add the -n flag at the beginning of your 
call and your instance will stay in the foreground. You will be able to 
print and you will be able to see any errors. Also make sure that 
web.config.debug is set to True.

chmod +x ./server.py
spawn-fcgi -n -d ./ -f ./server.py -a 127.0.0.1 -p 9001

in the shell + the following in your code should help

web.config.debug = True



On Monday, March 9, 2015 at 11:15:54 PM UTC-5, Suhas Patil wrote:
>
> Thanks Andrew. However my problem is not what you have provided solution 
> for. I like your design and will incorporate that in the later version of 
> software.  At present, I am able to use sessions in either main app or 
> sub-apps and it is a fairly large application that I have built. 
>
> Whenever I want to debug the application, I restart Apache so the access 
> and error logs are always for the current build of the software. My app 
> prints lot of debug information as I can not debug on the server and those 
> messages appear in error log. Now when I run the tests, the first few tests 
> (about 5-6) always fail when the server is restarted but alway pass when I 
> rerun the same tests. I was trying to find out what other part of session 
> management was broken and I should be aware of and hence I wrote the post. 
> My fear was if I needed to move away from web.py and to Django which I find 
> amazingly complicated to get a handle on to build the app and would avoid 
> if I can.
>
> Suhas
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to