Nginx / Web2py modules dont reload

58 views
Skip to first unread message

Mark Billion

unread,
Sep 24, 2015, 7:38:32 PM9/24/15
to web2py-users
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?  

黄祥

unread,
Sep 24, 2015, 8:03:32 PM9/24/15
to web2py-users
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

Mark Billion

unread,
Sep 24, 2015, 9:11:10 PM9/24/15
to web2py-users
Sadly I've tried that too

Leonel Câmara

unread,
Sep 24, 2015, 10:04:21 PM9/24/15
to web2py-users
Yeah I pretty much just restart uwsgi-emperor or touch the affected application config file in /etc/uwsgi/vassals

Massimo Di Pierro

unread,
Sep 24, 2015, 11:34:10 PM9/24/15
to web2py-users
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. 

Mark Billion

unread,
Sep 25, 2015, 9:18:55 AM9/25/15
to web...@googlegroups.com
Much appreciated everyone.  So far touch uwsgi.ini seems to be working...

--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Mark M. Billion
1904 N. Lincoln
Wilmington, DE 19806
302.416.2199
Reply all
Reply to author
Forward
0 new messages