cd wherever web2py is then try this:

sudo -u www-data nohup python web2py.py -i 127.0.0.1 -p 8000

On Feb 17, 9:29 am, LightOfMooN <vladsale...@yandex.ru> wrote:
> nohup web2py.py -i 127.0.0.1 -p 8000 &
> raises error:
>     nohup: cannot run comand 'web2py.py': No such file or directory.
> ofc, I try to run it in web2py catalog.
>
> On 17 фев, 19:29, Massimo Di Pierro <massimo.dipie...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > if apache manages start and stop of web2py threads you cannot use cron
> > inside apache. This does not mean you cannot use web2py cron. You just
> > have to start a web2py instance manually:
>
> > nohup web2py.py -i 127.0.0.1 -p 8000 &
>
> > On Feb 16, 9:19 am, LightOfMooN <vladsale...@yandex.ru> wrote:
>
> > > Hello
> > > I have web2py installed with setup-web2py-ubuntu.sh
> > > It runs with Apache mod_wsgi.
>
> > > Crontab of myapp is:
> > > */1  *  *  *  *  root  *cron/test
>
> > > And function:
> > > def test():
> > >     shop = db(db.shops.id==8).select().first()
> > >     new = shop.daystodelete + 1
> > >     shop.update_record(daystodelete=new)
> > >     db.commit()
> > >     return 'done'
> > > test()
>
> > > manually function works fine. But not with cron. Seems it's not
> > > working.
> > > Any ideas? Thx

Reply via email to