Okay, I understood at high level is: Rocket web server is bit slow as it will traverse to all layers so we can go for apache( I can go for apache also, as it seems like it serves our purpose because server has to run 24*7 on ubuntu so the client can access my application over the network, but I am not having any knowledge how to deploy all of my application data to apache, so if you are having any good source to learn it then please share to me), Second thing related to database , apart from installing MySql manually against postgresql , what are other pros and cons of using postgresql and mysql in web2py(web2py supports both databases so what is advantage of using postgresql over using MySql?).?
Regards, Amit On Fri, Jun 15, 2012 at 9:02 AM, Jason Brower <encomp...@gmail.com> wrote: > Built into web2py for when you develop locally is a server called Rocket. > This helps a lot because you don't have to setup the server to be running > all the time. > Take a look at the diagram I have given in this email. > The webserver is what listens to requests from somewhere on the > network/internet and depending on the information passes it to the correct > location. This is rocket, apache, twisted, cherokee, or one of many many > others. > Next, that information is passed to a module that executes pages according > to Massimo's marvelous magic we call web2py. :) That system then runs your > application. If it needs access to your database it will connect to it and > get the data it needs. > One thing I didn't mention in the diagram is the static files. In the > local setup with rocket they are given with web2py. And it is slower. In > the apache setup, we can take a shortcut and serve the files directly from > the apache webserver instead of going through all 3 layers. But you > shouldn't have to worry about it until your getting into more advanced > stuff. > Lastly, are you absolutely needed mysql? I am sure it can handle what your > doing, but your going to have to do it manually, where as the script I > showed you installs postgresql. From web2py, most things are going to be > identical to postgres so your not going to notice much of a difference in > my opinion. :) > Help that explains things for you. > BR, > Jason Brower > > > > On 06/15/2012 06:07 AM, Amit wrote: > > Thanks Jason for providing the useful inputs, I have to use ubuntu machine > as a server so will not be used for development purpose, will develop > web2py application in other PC and simply deploy that application into > ubuntu machine, my application will use MySql database and default web > server which will be provided by web2py framework.I didn't understand why > do I need to install apache web server and postgresql as my application > will not use these two(as i mentioned above my app will use MySql and > web2py web server). Please add some points on my doubt. > > Regards, > Piks > > On Thu, Jun 14, 2012 at 4:59 PM, Jason (spot) Brower > <encomp...@gmail.com>wrote: > >> You can run the script on your system by typing python web2py.py but I >> assume you know this. >> >> To install it permanently there is a script just for this. >> It does the following: >> * Installs any required features that you would need to run web2py. >> * Setups apache for you with access to https:// for your admin interface. >> * Install postgresql for you if you need a database. >> And many other things you can see when your looking at the scripts code. >> You can running it like this from your web2py directory... >> cd scripts >> ./setup-web2py-ubuntu.sh >> And have fun! >> You can see what it runs, which is most likely what we would tell you in >> email by typing this... >> cd scripts >> gedit setup-web2py-ubuntu.sh >> BR, >> Jason Brower >> >> >> On Thu, Jun 14, 2012 at 1:41 PM, Amit <amit.khaw...@gmail.com> wrote: >> >>> I am new bee in web2py development so can anyone share me whole >>> procedure of how to install web2py in ubuntu machine? And how to run web2py >>> application in ubuntu machine? >>> >>> Please share me the procedure in details. >>> >>> Thanks in advance. >>> >> >> > >