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
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
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
>
> 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
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
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'))
--
Hi, is there a way to reload routes on command line?
For production use. Thanks guys!
--
7 matches
Mail list logo