[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How to put a Ruby website online without rails

Softmind Technology

1/4/2008 7:46:00 AM

Hi,

I would like to develop a website totally in Ruby.

But i do not want to go the MVC way. Neither i want to go Ruby on Rails
way.

I have heard many stories about rails deployment. Its no as easy as PHP
deployment, neither are good host available for Ruby on rails.

what is the next option.....? I think Rails can't be the only solution.

I would like to place my website online just like PHP, but using Ruby
instead of PHP.

The platform would be Apache and MySql.

I think Ruby and Dreamweaver can make a nice combination. I also have
Netbeans and Scite installed and both works great.

I think preparing the design in Dreamweaver and checking the codes in
Netbeans, would be a nice idea.... But how to implement this ...?

Thanks

SoftMind
--
Posted via http://www.ruby-....

28 Answers

Marcin Raczkowski

1/4/2008 9:20:00 AM

0

there is mod_ruby just like mod_php.

there was lots of ruby applications before rails - but MVC was found to
be best way to handle web development :)

anyway if you want just use mod_ruby - or cgi or fast-cgi.

choice is yours.

greets

Vasyl Smirnov

1/4/2008 10:03:00 AM

0

You may want to try FastCGI, specifically, fcgi library for Ruby (gem
install fcgi)
and mod_fcgid for Apache.

You don't want to touch mod_ruby if you want to save your sleep.

Matt Todd

1/4/2008 11:37:00 AM

0

If what you want is PHP-like, why don't you use PHP? You certainly
sound more attuned to the PHP style of web development as it is.

Why do something half-assed with one language what you can do probably
better in another language that has much more support for that style
of development, etc. You won't find as much documentation for Ruby web
development not employing MVC paradigms... it's almost a de-facto
standard of Ruby web development (not to say that it is the ultimate
(tm) way to developm, but that it is the preferred way).

Don't try to struggle and do something awkward, just go with the
natural choice for the job.

If you do want to learn Ruby, consider that the reason why Ruby is
preferable to the likes of PHP is because of good style, flexibility,
and good libraries and tools doing the heavy lifting for us with some
standards.

Deploying on servers isn't impossible, it's just not the same as
Apache. There's plenty of documentation and suggestions where to get
it done and how, so it's not going to be difficult to do.

Rails is a lot to learn and it's certainly not small, but there are
other options. Merb is in the same area with Rails with regards to
being bigger than smaller, but it's very clean, light weight, and
shouldn't be too different from Rails. There are other frameworks like
Ramaze, Sinatra, IOWA, etc.

I would highly recommend you reconsider your decision to not go with
an MVC approach and also reconsider the facts.

Matt

hux0r

1/4/2008 3:51:00 PM

0

On Fri, 04 Jan 2008 02:45:48 -0500, Softmind Technology wrote:

> I would like to place my website online just like PHP, but using Ruby
> instead of PHP.
>
> The platform would be Apache and MySql.

I had a very nice experience with ERUBY. Eruby was easy to install on a
shared host and easy to configure since they had CPanel.

It should take your average admin 2.7 secs to install in case your server
host will do that for you.

Mod_ruby, erb and fastcgi are all valid alternatives, too.

Casimir

Giles Bowkett

1/4/2008 4:14:00 PM

0

> Rails is a lot to learn and it's certainly not small, but there are
> other options. Merb is in the same area with Rails with regards to
> being bigger than smaller, but it's very clean, light weight, and
> shouldn't be too different from Rails. There are other frameworks like
> Ramaze, Sinatra, IOWA, etc.

Just wanted to highlight this bit. Also Camping, Nitro, and probably
others I've forgotten.

--
Giles Bowkett

Podcast: http://hollywoodgrit.bl...
Blog: http://gilesbowkett.bl...
Portfolio: http://www.gilesg...
Tumblelog: http://giles....

John Joyce

1/4/2008 11:27:00 PM

0

as far as the language you choose, it all depends on what you want to
do and how much you want to do.
If you just need some simple, quick things, PHP might be a better
choice to get started and make things work.
If you are interested in more complex things, you will want to use
some existing framework in any language to help things be structured
and easier to maintain and add to.
The problem is, without experiencing several frameworks in several
languages, it is difficult to compare them or even choose the right
one for a particular project.
The web hosting provider you use, and features you get for the paid
service level will determine some things for you.
All frameworks and languages will have a learning curve.

But again, if you just need some little things here and there, PHP
might be the best approach in the beginning, since many of it's
functions are quick, one-trick-ponies, and PHP is widely supported
and easy to get started with for web development.
But if you need a lot of features, spend some time investigating a
language/framework combination that will work for you.
It all depends on the specifics.
If you need to do a lot of sophisticated things, you might find PHP
quickly becomes tedious to work with. Then look into Ruby or Python
based frameworks that save you a lot of work in the long-run.

Generally speaking, web sites are not set-it-and-forget-it, they
often require regular updates and changes.

James Dinkel

1/5/2008 5:00:00 AM

0

I have wondered this same thing. Sometimes a web framework isn't the
best option, but I know Ruby very well and I don't know PHP at all.
What would I have to do that I can just create a file called somepage.rb
with this in it:

<html>
<body>
<p>This is counting to 10: <%= 10.times { |n| print n+1, " " } %></p>
</body>
</html>

And just have to dump it into any old folder that Apache servers pages
in and have it served properly? Can I just do "sudo aptitude -y install
mod_ruby" and will it Just Work(tm)?
--
Posted via http://www.ruby-....

Paul Stickney

1/5/2008 5:24:00 AM

0

> I have wondered this same thing. Sometimes a web framework isn't the
> best option, but I know Ruby very well and I don't know PHP at all.
> What would I have to do that I can just create a file called somepage.rb
> with this in it:

And the good news is ... FRAMEWORKS DON'T HAVE TO EAT YOUR SOUL! :)

RoR is the *Most Popular* web framework for Ruby.
It is *not* the only framework. Some others are:

Nitro/Og http://www.nitropr...

Camping http://redhanded.hobix.com/bits/campingAMicrofram...

Ramaze http://r...

Sinatra http://sinatra.ruby...

Merb http://merb...

NARF http://www.nar...

Etc (I'm sure there are many more)

I would recommend looking around and seeing if any one of the dozens
of current frameworks would work for you. They aren't all huge. They
aren't all slow. They don't all have the same (or any) notion of MVC.

In the end I would avoid using PHP at all costs (unless dictated due
to server resources or monetary pay) because I hate that wretched
language. And, I would look at a framework which offers--it doesn't
need to mandate--an MVC architecture or other method of separating
HTML and code. Even if you don't [want to] use it now, having the
option may allow for a cleaner transition....

Softmind Technology

1/5/2008 7:03:00 AM

0

Hello All,

Let me come out clear. I do not know PHP, neither i am a Php guy.

I am just like James Dinkel, who has explained his requirement above.

I am totally into plain Ruby. Not even rails.

I am looking for a solution where i can place the codes inline the HTML
file just like classic asp and Php.

Currently Rails is placing the codes inside HTML with ERB. I want to
place the codes same way either with include file or some other way...
But... Without Ruby on rails.

It would be better, if some one can point me out a working tutorial or
blog based on my requirement. I do not want to get tied up initially
with any of MVC.

Hope i have cleared myself.

Thanks

SoftMind.
--
Posted via http://www.ruby-....

Marcin Raczkowski

1/5/2008 7:11:00 AM

0

Softmind Technology wrote:
> Hello All,
>
> Let me come out clear. I do not know PHP, neither i am a Php guy.
>
> I am just like James Dinkel, who has explained his requirement above.
>
> I am totally into plain Ruby. Not even rails.
>
> I am looking for a solution where i can place the codes inline the HTML
> file just like classic asp and Php.
>
> Currently Rails is placing the codes inside HTML with ERB. I want to
> place the codes same way either with include file or some other way...
> But... Without Ruby on rails.
>
> It would be better, if some one can point me out a working tutorial or
> blog based on my requirement. I do not want to get tied up initially
> with any of MVC.
>
> Hope i have cleared myself.
>
> Thanks
>
> SoftMind.

You can just use Erubis + Ruby + Apache with mod_fcgi or Mongrel