You're right, shouldn't be hard. But, for me it is. I'll post back if I can get it working...
-Jim On Monday, February 8, 2016 at 10:06:36 AM UTC-6, Niphlod wrote: > > shouldn't be hard > > https://wiki.ubuntu.com/SystemdForUpstartUsers > > On Monday, February 8, 2016 at 5:02:33 PM UTC+1, Jim S wrote: >> >> I played with this a bit over the weekend but was unable to get it >> working on Ubuntu 15.x. >> >> My production servers all run 14.4. >> >> I think the problem is the change from upstart to systemd on Ubuntu. >> Does anyone have experience getting uwsgi to start using systemd? I don't >> know enough about these systems to get it all right. I think it involves >> have a uwsgi.service file defined so that systemd will start it up, but I >> don't know for sure how to get that all working. >> >> -Jim >> >> >> On Saturday, February 6, 2016 at 10:20:31 AM UTC-6, xmarx wrote: >>> >>> >>> selman@selman-VirtualBox:~$ ps -ewwf | grep uwsgi >>> selman 1878 1848 0 18:15 pts/2 00:00:00 grep --color=auto uwsgi >>> selman@selman-VirtualBox:~$ sudo restart uwsgi-emperor >>> [sudo] password for selman: >>> restart: Upstart'a bağlanılamıyor: Failed to connect to socket >>> /com/ubuntu/upstart: Bağlantı reddedildi >>> >>> >>> english: could't connect upstart. Failed to connect to socket >>> /com/ubuntu/upstart: connection denied. >>> >>> >>> >>> >>> >>> 6 Şubat 2016 Cumartesi 00:46:28 UTC+2 tarihinde Jim S yazdı: >>>> >>>> Also, what happens when you run: >>>> >>>> sudo restart uwsgi-emperor >>>> >>>> >>>> You should get something like this: >>>> >>>> >>>> uwsgi-emperor start/running, process 2749 >>>> >>>> >>>> -Jim >>>> >>>> >>>> >>>> On Friday, February 5, 2016 at 4:34:54 PM UTC-6, Jim S wrote: >>>>> >>>>> Do you know if uwsgi is running: >>>>> >>>>> Try this from the command line... >>>>> >>>>> ps -ewwf | grep uwsgi >>>>> >>>>> results should look something like this: >>>>> >>>>> [image: Inline image 1] >>>>> >>>>> -Jim >>>>> >>>>> >>>>> >>>>> On Fri, Feb 5, 2016 at 3:18 PM, xmarx <[email protected]> wrote: >>>>> >>>>>> ubuntu 15.10 is running on vm VirtualBox. >>>>>> i exec the script and didn't install anything. nginx is installed by >>>>>> the script and running. >>>>>> http://localhost/ and https://localhost/ raise 502 Bad Gateway page. >>>>>> >>>>>> there isn't a routes.py file in /home/www-data/web2py/ >>>>>> web2py file is attached in /etc/nginx/sites-available/ >>>>>> >>>>>> my script is: >>>>>> https://raw.githubusercontent.com/web2py/web2py/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh >>>>>> >>>>>> thanks for your help Jim. >>>>>> >>>>>> >>>>>> >>>>>> 5 Şubat 2016 Cuma 21:56:00 UTC+2 tarihinde Jim S yazdı: >>>>>>> >>>>>>> Did you install nginx after running the script? nginx is >>>>>>> automatically installed by the script, you don't have to do it manually. >>>>>>> >>>>>>> If you didn't do that (I could be reading your message wrong), can >>>>>>> you post the following files? >>>>>>> >>>>>>> /home/www-data/web2py/routes.py >>>>>>> /etc/nginx/sites-available/web2py >>>>>>> >>>>>>> They will tell us a bit about how it is behaving. >>>>>>> >>>>>>> -Jim >>>>>>> >>>>>>> >>>>>>> On Friday, February 5, 2016 at 1:28:10 PM UTC-6, xmarx wrote: >>>>>>>> >>>>>>>> i read the deployment recipes page and nginx section again and >>>>>>>> again. i don`t see about `after install` >>>>>>>> >>>>>>>> i try install this script >>>>>>>> http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh >>>>>>>> after your message. when installing done. i type localhost on my >>>>>>>> browser. >>>>>>>> then i get web2py welcome page. but when i install nginx\ localhost is >>>>>>>> nginx`s welcome page. >>>>>>>> >>>>>>>> thanks. >>>>>>>> >>>>>>>> 5 Şubat 2016 Cuma 17:54:39 UTC tarihinde Jim S yazdı: >>>>>>>>> >>>>>>>>> Actually, this is the link you want: >>>>>>>>> >>>>>>>>> >>>>>>>>> http://web2py.com/books/default/chapter/29/13/deployment-recipes#Nginx >>>>>>>>> >>>>>>>>> Also, notice that there are automatic install scripts at the end >>>>>>>>> of this section for ubuntu and nginx. >>>>>>>>> >>>>>>>>> Assuming you're in production, you don't 'have' to run under >>>>>>>>> nginx, it is just recommended. >>>>>>>>> >>>>>>>>> Once this is setup, web2py will be running through nginx and >>>>>>>>> uwsgi, no need to 'start' it with the web2py.py pgm. >>>>>>>>> >>>>>>>>> If you read through the docs it is explained pretty well. >>>>>>>>> >>>>>>>>> -Jim >>>>>>>>> >>>>>>>>> >>>>>>>>> On Friday, February 5, 2016 at 11:52:16 AM UTC-6, Jim S wrote: >>>>>>>>>> >>>>>>>>>> Have you read through this? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> http://web2py.com/books/default/chapter/29/13/deployment-recipes#Linux-and-Unix >>>>>>>>>> >>>>>>>>>> -Jim >>>>>>>>>> >>>>>>>>>> On Friday, February 5, 2016 at 11:33:57 AM UTC-6, xmarx wrote: >>>>>>>>>>> >>>>>>>>>>> i install on ubuntu web2py, nginx and uwsgi. >>>>>>>>>>> >>>>>>>>>>> when i run web2py (sudo python web2py.py) admin says Running on >>>>>>>>>>> Rocket 1.2.6, Python 2.7.10. >>>>>>>>>>> >>>>>>>>>>> where did i mistake? it must run on nginx, am i right? >>>>>>>>>>> >>>>>>>>>>> thanks. >>>>>>>>>>> >>>>>>>>>> -- >>>>>> 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/ZM9IIEjtHSI/unsubscribe. >>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>> [email protected]. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> -- 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.

