Re: [web2py] Re: Nginx / Web2py modules dont reload

2015-09-25 Thread Mark Billion
Much appreciated everyone.  So far touch uwsgi.ini seems to be working...

On Thu, Sep 24, 2015 at 11:34 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> Track changes is really meant for testing and not for production and I
> cannot exclude something strange can happen in a highly concurrent
> environment. If the module is in the app modules/ folder, all workers
> should update it but something else may be going on. As Leonel says
> restarting uwsgi-emperor is the safest thing.
>
>
> On Thursday, 24 September 2015 18:38:32 UTC-5, Mark Billion wrote:
>>
>> Running w2p on nginx/ubuntu 14.04.  When I change a module's code, the
>> changes dont show up when I load the app again (ie a class that returned 2
>> but now returns 1 still returns 2).  Ive turned sendfile off in Nginx
>> and have reloaded the thing over and over.  Sometimes it works and
>> sometimes I get the same (wrong) result. Any thoughts?
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/F9wY1JcjVqo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Mark M. Billion
1904 N. Lincoln
Wilmington, DE 19806
302.416.2199

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Nginx / Web2py modules dont reload

2015-09-24 Thread Mark Billion
Sadly I've tried that too

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Nginx / Web2py modules dont reload

2015-09-24 Thread Leonel Câmara
Yeah I pretty much just restart uwsgi-emperor or touch the affected 
application config file in /etc/uwsgi/vassals

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Nginx / Web2py modules dont reload

2015-09-24 Thread Massimo Di Pierro
Track changes is really meant for testing and not for production and I 
cannot exclude something strange can happen in a highly concurrent 
environment. If the module is in the app modules/ folder, all workers 
should update it but something else may be going on. As Leonel says 
restarting uwsgi-emperor is the safest thing. 

On Thursday, 24 September 2015 18:38:32 UTC-5, Mark Billion wrote:
>
> Running w2p on nginx/ubuntu 14.04.  When I change a module's code, the 
> changes dont show up when I load the app again (ie a class that returned 2 
> but now returns 1 still returns 2).  Ive turned sendfile off in Nginx and 
> have reloaded the thing over and over.  Sometimes it works and sometimes I 
> get the same (wrong) result. Any thoughts?  
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Nginx / Web2py modules dont reload

2015-09-24 Thread 黄祥
perhaps it about web2py custom import
e.g.
models/db.py
## uncomment when running on development
from gluon.custom_import import track_changes; track_changes(True)

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.