On May 28, 10:30 pm, Dominique Eav <[EMAIL PROTECTED]> wrote:
> buffalob wrote:
> > When in development config when running on my Windows laptop (using
> > localhost in browswer), I enjoyed the convenience of TG dynamically
> > accounting for each save of an edit to 'controllers.py'.
> > <snip>
> > I don't know which factor (dev config using localhost vs. prod config
> > using real URL, or Windows vs. Solaris/Unix) is making this
> > difference.
>
> Autoreload is set in dev config and not in prod config, which makes
> sense to me. Why not try to fire up TG with dev config on your unix ?
> This will do the trick.

Dom, thanks much for reply.  The reason for having TG running in prod
config even while still doing some "developing" on the unix server is
that some of the use cases I'm working on involve some two-way
interaction with with external web apps on other computers (and my
understanding is that TG running in dev config does not allow access
via a real URL - only standalone "localhost", correct?)  So as a
suggestion for future TG releases, it might be convenient for some
some situations to be able to enable Autoreload in prod config, even
if it's not the default behavior.  (And/or to enable use of a real URL
during dev config.)

I'm still very new to TG, so maybe I'm not using the correct terms but
I think you'll know what I'm trying to suggest.

> A possibly related question: is there a way I can easily leave the TG
> > server running after I log out of my session on the server?
>
> This is not related, as this is a pure unix question. A tool like nohup
> will do the trick, but several alternatives exist.
>

Ok, thanks, I can look into such approaches from a unix perspective.
But also perhaps as a future suggestion for TG it might be nice for
non expert users for TG to provide some start and stop scripts to do
this, similar to what Apache Tomcat provides.  When I was developing
in Tomcat last year I was able to have the web app keep running my
terminal session without needing to delve into lower level unix to do
this.  Probably most TG users never need this, but just mentioning it
as a suggestion of something to consider.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to