Putting Rails on the Web Server

Can you put rails on a web server before you have written an
application? And how do you do it?

Thank you,

On Thu, Jun 25, 2009 at 9:23 AM, Mr. Watson[email protected]
wrote:

Can you put rails on a web server before you have written an
application? And how do you do it?

Yes, typically, sudo gem install rails would do it :slight_smile:


Hassan S. ------------------------ [email protected]

No, I mean putting it on the web host server. I use dreamhost @
www.codyewatson.com and I wanted to put it on there.

On Jun 25, 11:54 am, Hassan S. [email protected]

On Thu, Jun 25, 2009 at 9:59 AM, Mr. Watson[email protected]
wrote:

No, I mean putting it on the web host server. I use dreamhost @
www.codyewatson.com and I wanted to put it on there.

I don’t know anything about “dreamhost” but AFAIK the same answer
still applies:

sudo gem install rails

What else do you think you need?


Hassan S. ------------------------ [email protected]

So do I just transfer the files on my web server?

On Jun 25, 12:03 pm, Hassan S. [email protected]

On Thu, Jun 25, 2009 at 10:10 AM, Mr. Watson[email protected]
wrote:

So do I just transfer the files on my web server?

What “files”? You use gem to install rails.

Are you actually talking about deploying an application that you’ve
created somewhere else? Because that’s an entirely different matter.


Hassan S. ------------------------ [email protected]

Yes, I am talking about deploying it on the web server.

I just want to deploy a barebones application.

rails depot
app/
config/
db/
doc/
lib/
log/
public/
script/
test/
tmp/
vendor/

On Jun 25, 12:28 pm, Hassan S. [email protected]

Its at http://www.dreamhost.com on a Debian Linux server

Do you have the source code stored somewhere? like github or your own
subversion? You should have a look at capistrano as a deployer
application for your rails app.

Also what type of webserver/appserver is it that you are using?
Mongrel/Thin other?

On Thu, Jun 25, 2009 at 12:05 PM, Mr. Watson[email protected]
wrote:

Its at http://www.dreamhost.com on a Debian Linux server

? What is?

The question is: do you have an existing application that you want
to deploy? If so, where is that application’s source code?

But as suggested, reading up on capistrano would probably be a
good start, along with googling ‘rails deployment’.


Hassan S. ------------------------ [email protected]

If you’re using a shared hosting account, all the necessary
infrastructure
should already be in place for you. See the wiki for information about
deployment.

http://wiki.dreamhost.com/Rails
http://wiki.dreamhost.com/Passenger

If you’re running a VPS, it’s not clear what’s installed out of the box,
so
you’d need to check to see that Ruby, Rails and some deployment platform
are
there. A quick check from the command line should tell you everything
you
need to know. If you need a guide to setting up, Slicehost did some
good
step-by-step walkthroughs for their customers. I know you’re not on
Slicehost, but the same principles should apply.

http://articles.slicehost.com/2009/2/2/ubuntu-intrepid-mod_rails-installation
http://articles.slicehost.com/2009/2/2/ubuntu-intrepid-using-mod_rails-to-serve-your-application
http://articles.slicehost.com/2009/2/27/ubuntu-intrepid-mongrel-and-mongrel-cluster
http://articles.slicehost.com/2009/2/27/ubuntu-intrepid-apache-rails-and-mongrels
http://articles.slicehost.com/2009/3/11/ubuntu-intrepid-nginx-rails-and-mongrels

On Thu, Jun 25, 2009 at 9:11 PM, Hassan S. <

Hi Codye,

Take into account what Chris K. have said.

You just need to copy the Rails app into the server and point a link
to it (myapp/public).

Here is my HTML-CSS page: http://www.marcric.com/

And here is my Rails Page: http://www.mrpwp.marcric.com/

Both on DreamHost. A piece of cake.

All the best.