If you install a new web2py app and, before you start web2py, you run
your line below, then start web2py, welcome.w2p will package your cron
task. All apps created after that will have it.

Massimo

On 27 Mar, 23:12, Iceberg <[email protected]> wrote:
> On Mar27, 5:27pm, annet <[email protected]> wrote:
>
> > I have just moved my application from the development environment to a
> > production environment. I read the web2py manual and some posts in the
> > group on the subject of cleaning up sessions, but I am not sure which
> > is the best way to proceed. I am running version 1.76.5 of web2py.
>
> > Kind regards,
>
> > Annet
>
> My approach is to use admin's expire_sessions.py feature, by this way:
>
> $> cp web2py/applications/admin/cron/crontab web2py/applications/myapp/
> cron
>
> By the way, I feel boring that I have to do this every time I create a
> new app, yet sometimes I forgot that. Don't know whether Massimo will
> think about adding that line by default when creating every new app.
>
> Sincerely,
> Iceberg

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

Reply via email to