Website Setup & Info

ID #1027

How do I setup a Ruby On Rails application?

Its very easy, assuming you're starting from scratch, SSH into login.geekisp.com and type:

$ control_apache add mydomain.com
$ cd www.mydomain.com
$ rails myapp
$ rm -r htdocs
$ ln -s myapp/public htdocs
$ chmod -R g+w myapp/log myapp/tmp
$ vi htdocs/.htaccess

While editing the .htaccess file, add the following line right after the line that says 'RewriteEngine On':

RewriteBase /

This is necessary because of the way most virtual hosts are configured at GeekISP. Under certain configurations, this step is not necessary, but it will never do any harm to add it.

Now browse to www.mydomain.com and you should see the Rails welcome page.

Last update: 2006-10-21 23:52
Author: Dave Steinberg
Revision: 1.2

Print this record Print this record
Send to a friend Send to a friend
Show this as PDF file Show this as PDF file
Export as XML-File Export as XML-File

Please rate this entry:

Average rating: 5 out of 5 (3 Votes )

completely useless 1 2 3 4 5 most valuable

You can comment on this entry

Comment of wmat (2038-01-18 22:14:07):
I believe the instruction: chmod g+w myapp/logs myapp/logs/* myapp/tmp/* should be: chmod g+w myapp/log myapp/log/* myapp/tmp/* i.e. no 's' on the word log

Comment of Jared (2008-06-07 20:02:07):
Is this up to date for Rails 2.x?