[web2py] Re: Can web2py do shared IP hosting

2011-11-21 Thread Anthony
On Monday, November 21, 2011 10:05:02 AM UTC-5, Robert Shaver wrote:
>
> I guess I misread something. I thought I could download web2py and install 
> it with a built-in web server ... Rocket I think was the name. (I haven't 
> researched Rocket yet.) Are you saying that these features are addressed as 
> part of the server environment and not a defined feature of web2py? (I've 
> always had an admin doing this kind of detail work so I've never had to 
> understand it in detail.)
>

Rocket is primarily intended for development. You can use it in production 
as well, though for production it is generally recommended you use a more 
full-featured web server, like Apache.
 

> I should have been more clear about my computer environment ... my 
> assumption was that I would be running web2py on my own dedicated server 
> ... which is what I do now with my projects. My intention is to replace the 
> server/framework I have now with one based on web2py but I want to be sure 
> it has all the features I will need to grow.
>

If you've got full control over your server, you might consider using one 
of web2py's setup scripts to set up Apache or nginx 
(http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ubuntu.sh, 
http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh).
 

> For example, I want to design all the new web sites to be mobile 
> compatible using responsive page design, which scales smoothly for desktop, 
> tablet and smart-phone screen sizes. Here's a page with many examples of 
> this in production now: http://designmodo.com/responsive-design-examples/
>

The responsive design stuff is mostly handled client side via CSS media 
queries and Javascript, so that will all work fine with web2py. In fact, 
the next web2py release (due any day now) will include a new responsive 
'welcome' scaffolding app based on Skeleton (http://www.getskeleton.com). 
Here's an initial demo: http://tests.web2py.com/welcome/ (though a few 
tweaks have been made to the final version).

web2py also includes some server-side code to enable detection of mobile 
clients and delivery of alternative output. request.user_agent() gives you 
the user agent details, and request.user_agent().is_mobile tells you if 
it's a mobile client. Also, adding the @mobilize decorator to a function 
changes its view file from function.html to function.mobile.html when the 
request is from a mobile client.

Anthony 



[web2py] Re: Can web2py do shared IP hosting

2011-11-21 Thread Robert Shaver
Dear Massimo,

Thank you for your quick response. I heard your interview on FLOSS Weekly 
and that's how I discovered web2py.

I guess I misread something. I thought I could download web2py and install 
it with a built-in web server ... Rocket I think was the name. (I haven't 
researched Rocket yet.) Are you saying that these features are addressed as 
part of the server environment and not a defined feature of web2py? (I've 
always had an admin doing this kind of detail work so I've never had to 
understand it in detail.)

I should have been more clear about my computer environment ... my 
assumption was that I would be running web2py on my own dedicated server 
... which is what I do now with my projects. My intention is to replace the 
server/framework I have now with one based on web2py but I want to be sure 
it has all the features I will need to grow.

For example, I want to design all the new web sites to be mobile compatible 
using responsive page design, which scales smoothly for desktop, tablet and 
smart-phone screen sizes. Here's a page with many examples of this in 
production now: http://designmodo.com/responsive-design-examples/

Warmest regards,

Rob:-]


[web2py] Re: Can web2py do shared IP hosting

2011-11-20 Thread Massimo Di Pierro
web2py is agnostic to it. The question is can you do is securely? That
depends on what the share hosting provides offers you.

what web server?
mod_wsgi?
are you allowed to run long processes under your account?

For example if they allow you to start a long running process in your
account, you can use apache+mod_proxy.
If they provide mod_wsgi than even better.
If they only support php and expect to run web2py as cgi, you can
still run it but I would move somewhere else.

massimo

On Nov 20, 11:49 pm, Robert Shaver  wrote:
> I'm completely new to web2py and so far have only been reading the
> documents to see if it has the features I'm looking for to implement my
> next project. Please let me know if I'm asking the wrong questions or if
> there's anything else I should be considering along with these questions.
>
> Many servers support shared IP hosting. Does web2py support this? (I didn't
> know what to call that feature until I found 
> this
> .)
> Can it also support dedicated IP hosting for multiple web sites? (Each site
> has a unique IP address on the same server.)
> Can it also support sub-domains as well? 
> (EXAMPLE:http://subdomain.maindomain.com/a/c/f)
>
> This all assumes the DNS is all set up correctly.
>
> I do intend that each of these sites be completely different from the
> others supported on the same server with one instance of web2py.