That's what I have actually :) I have emperor mode configured as suggested in the book. When I want to restart uwsgi process, I just make a touch to the uwsgi.ini file and the process restart successfully. It's inmediate and transparent to the users (I mean, users browsing the websites).
The "problem" is when I want to update several of the installed apps. In this case, I have two options: 1) Do a "hg update" in all the apps, and **finally**, restart uwsgi process. But in this case, the updated apps will be throwing that error at least for the time that takes to finish the update in all apps. 2) For every app, do a "hg update" and **inmediately after** restart uwsgi process. I've tried this but it didn't went too well, because the uwsgi process was being restarted several times in a very short period of time (I mean, it was restarted as much times as apps I had updated). When I tried that, I ended app with nginx not finding the uwsgi process and all apps throwing errors (about socket not being available or something like that). El miércoles, 17 de junio de 2015, 12:26:40 (UTC-3), Niphlod escribió: > > why don't you use the emperor mode with uwsgi pointing each process to a > file that, when you modify it, reloads automatically the process ? > > On Wednesday, June 17, 2015 at 5:13:02 PM UTC+2, Lisandro wrote: >> >> Yes, I understand it's not a web2py problem, I was just wondering if >> there was a way of achieving that without restarting uwsgi process. >> >> I can see the need of restarting the process that runs the app after >> updating that app. However, most of the times, the update involves changes >> to static files (css, some javascript, maybe some images), and I'm forced >> to restart uwsgi process when the app code hasn't actually changed. >> Moreover: I'm running a lot of web2py applications (between 40 and 50), and >> I don't like the idea of restarting the uwsgi process that serves all that >> apps just because I had to update some css files in just one app. >> >> But I understand this is not web2py related, I was just wondering if it >> would be possible to do it in another way. >> I will look into Mercurial to see if there is a way of updating just the >> files that have actually changed, don't know if this would actually work. >> >> Another obvious thing to do is avoiding frecuent small updates and, >> instead, updating the app once in a while with all the changes needed. >> However in my case this is not possible, because each app correspond to a >> customer, and sometimes the customer needs the change to be applied >> inmediately. >> >> >> El miércoles, 17 de junio de 2015, 3:39:07 (UTC-3), Niphlod escribió: >>> >>> beside from the fact that is hardly a web2py problem, what the heck ? >>> you udpate the app and you don't want to reload the process that runs it ? >>> >>> -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

