Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > How to put a Ruby website online without rails

Reply
Thread Tools

How to put a Ruby website online without rails

 
 
Softmind Technology
Guest
Posts: n/a
 
      01-04-2008
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-forum.com/.

 
Reply With Quote
 
 
 
 
Marcin Raczkowski
Guest
Posts: n/a
 
      01-04-2008
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

 
Reply With Quote
 
 
 
 
Vasyl Smirnov
Guest
Posts: n/a
 
      01-04-2008
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.

 
Reply With Quote
 
Matt Todd
Guest
Posts: n/a
 
      01-04-2008
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

 
Reply With Quote
 
hux0r
Guest
Posts: n/a
 
      01-04-2008
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
 
Reply With Quote
 
Giles Bowkett
Guest
Posts: n/a
 
      01-04-2008
> 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.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com

 
Reply With Quote
 
John Joyce
Guest
Posts: n/a
 
      01-04-2008
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.

 
Reply With Quote
 
James Dinkel
Guest
Posts: n/a
 
      01-05-2008
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-forum.com/.

 
Reply With Quote
 
Paul Stickney
Guest
Posts: n/a
 
      01-05-2008
> 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.nitroproject.org/

Camping http://redhanded.hobix.com/bits/camp...framework.html

Ramaze http://ramaze.net/

Sinatra http://sinatra.rubyforge.org/

Merb http://merbivore.com/

NARF http://www.narf-lib.org/

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....

 
Reply With Quote
 
Softmind Technology
Guest
Posts: n/a
 
      01-05-2008
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-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Ruby on Rails Developer – London – Upto £55k – Ruby on Rails Jason Wong Ruby 0 11-20-2007 11:01 AM
online quiz website using Ruby/Rails user-x Ruby 0 10-26-2006 03:09 PM
Rails and Ruby in Germany -> Rails is Ruby killer application Josef 'Jupp' SCHUGT Ruby 5 01-24-2006 11:13 PM



Advertisments