Must I use Apache locally?

Hello,

I am considering trying out Ruby but have following question.

At the moment I have a web site which uses PHP and MySQL. The hosting
server is a Unix server and may well be running Apache but at the
moment I do not know for sure.

Do I have to develop code on my own PC using Apache?

Cheers

Geoff

Hi Geoff,

when developing your Rails application you don't need any web server (until it comes to the deployment on your hosting server :wink: ).

Rails comes with an in-build web server (WEBrick) that you can start with "script/server" from your Rails app root directory. But you'll still need MySQL though :wink:

Cheers and best regards,

Enrique Comba Riepenhausen

···

On 6 May 2007, at 11:20, Geoff Cox wrote:

Hello,

I am considering trying out Ruby but have following question.

At the moment I have a web site which uses PHP and MySQL. The hosting
server is a Unix server and may well be running Apache but at the
moment I do not know for sure.

Do I have to develop code on my own PC using Apache?

Cheers

Geoff

Enrique Comba Riepenhausen wrote:

Hi Geoff,

when developing your Rails application you don't need any web server (until it comes to the deployment on your hosting server :wink: ).

Rails comes with an in-build web server (WEBrick) that you can start with "script/server" from your Rails app root directory. But you'll still need MySQL though :wink:

Actually, *Ruby* comes with WEBrick.

To test deployment, you can use Apache (dunno how easy it is to set that up with Windows OSes and mod_ruby, I had no luck, but didn't try very hard), or a UNIX/Linux VM (there are free virtualization tools, like VMware Server, Innotek's VirtuaBox, MS Virtual PC, the open source version of Virtuozzo).

···

--
Phillip "CynicalRyan" Gawlowski
http://cynicalryan.110mb.com/
http://clothred.rubyforge.org

Eek! That was supposed to be My Special Law, _MY_ special law, I tell
you!

T/

Hi Geoff,

when developing your Rails application you don't need any web server
(until it comes to the deployment on your hosting server :wink: ).

Rails comes with an in-build web server (WEBrick) that you can start
with "script/server" from your Rails app root directory. But you'll
still need MySQL though :wink:

Cheers and best regards,

Enrique Comba Riepenhausen

Thanks Enrique.

Cheers

Geoff

···

On Sun, 6 May 2007 18:25:35 +0900, Enrique Comba Riepenhausen <ecomba@mac.com> wrote:

On 6 May 2007, at 11:20, Geoff Cox wrote:

Hello,

I am considering trying out Ruby but have following question.

At the moment I have a web site which uses PHP and MySQL. The hosting
server is a Unix server and may well be running Apache but at the
moment I do not know for sure.

Do I have to develop code on my own PC using Apache?

Cheers

Geoff

Hi Geoff,

when developing your Rails application you don't need any web server
(until it comes to the deployment on your hosting server :wink: ).

Rails comes with an in-build web server (WEBrick) that you can start
with "script/server" from your Rails app root directory. But you'll
still need MySQL though :wink:

To get started, you might want to try an embedded SQLite3 database. No
need to run a db server.

--max

···

On 5/6/07, Enrique Comba Riepenhausen <ecomba@mac.com> wrote:

Cheers and best regards,

Enrique Comba Riepenhausen

On 6 May 2007, at 11:20, Geoff Cox wrote:

> Hello,
>
> I am considering trying out Ruby but have following question.
>
> At the moment I have a web site which uses PHP and MySQL. The hosting
> server is a Unix server and may well be running Apache but at the
> moment I do not know for sure.
>
> Do I have to develop code on my own PC using Apache?
>
> Cheers
>
> Geoff
>

I know it's not standard Rails procedure, but these days when I deploy apps I sometimes don't deploy with any sort of a conventional web server at all. I've found that I can serve static assets amply fast enough without it (3500+ small files/second on a commodity 64 bit AMD Linux box), and I like the simplicity of a system that doesn't incorporate a traditional web server at all in the request handling chain.

Kirk Haines

···

On Sun, 6 May 2007, Enrique Comba Riepenhausen wrote:

Hi Geoff,

when developing your Rails application you don't need any web server (until it comes to the deployment on your hosting server :wink: ).

Thanks for the info Phillip.

Cheers

Geoff

···

On Mon, 7 May 2007 04:23:22 +0900, Phillip Gawlowski <cmdjackryan@googlemail.com> wrote:

Enrique Comba Riepenhausen wrote:

Hi Geoff,

when developing your Rails application you don't need any web server
(until it comes to the deployment on your hosting server :wink: ).

Rails comes with an in-build web server (WEBrick) that you can start
with "script/server" from your Rails app root directory. But you'll
still need MySQL though :wink:

Actually, *Ruby* comes with WEBrick.

To test deployment, you can use Apache (dunno how easy it is to set that
up with Windows OSes and mod_ruby, I had no luck, but didn't try very
hard), or a UNIX/Linux VM (there are free virtualization tools, like
VMware Server, Innotek's VirtuaBox, MS Virtual PC, the open source
version of Virtuozzo).