Re: [web2py] Reload routes command line?

2012-10-03 Thread lyn2py
Thank you guys, I'm gonna try this out on the production On Wednesday, October 3, 2012 6:49:31 AM UTC+8, Jonathan Lundell wrote: > > On 2 Oct 2012, at 3:42 PM, Bruno Rocha > > wrote: > > You could do that from the command line, too, with a python script. >> > > I understood that it need to run un

Re: [web2py] Reload routes command line?

2012-10-03 Thread Corne Dickens
Op woensdag 3 oktober 2012 00:42:47 UTC+2 schreef rochacbruno het volgende: > > You could do that from the command line, too, with a python script. >> > > I understood that it need to run under the current running environment > right? if I have a server running (apache) and I open a web2py conso

Re: [web2py] Reload routes command line?

2012-10-02 Thread Jonathan Lundell
On 2 Oct 2012, at 3:42 PM, Bruno Rocha wrote: > You could do that from the command line, too, with a python script. > > I understood that it need to run under the current running environment right? > if I have a server running (apache) and I open a web2py console I will have > two different env

Re: [web2py] Reload routes command line?

2012-10-02 Thread Bruno Rocha
> > You could do that from the command line, too, with a python script. > I understood that it need to run under the current running environment right? if I have a server running (apache) and I open a web2py console I will have two different environments, how the routes reloaded on the shell will

Re: [web2py] Reload routes command line?

2012-10-02 Thread Jonathan Lundell
On 2 Oct 2012, at 11:53 AM, Bruno Rocha wrote: > This is what admin does, but this have to be executed within the environent. > You can have a controller to execute this: > > def reload_routes(): > > > """ Reload routes.py """ > > > import gluon.rewrite > > > gluon.rewrite.load

Re: [web2py] Reload routes command line?

2012-10-02 Thread Bruno Rocha
This is what admin does, but this have to be executed within the environent. You can have a controller to execute this: def reload_routes(): """ Reload routes.py """ import gluon.rewrite gluon.rewrite.load() redirect(URL('your_home_url')) --

[web2py] Reload routes command line?

2012-10-02 Thread lyn2py
Hi, is there a way to reload routes on command line? For production use. Thanks guys! --