Website Setup & Info
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.
Tags: -
Related entries:
Last update: 2006-10-21 23:52
Author: Dave Steinberg
Revision: 1.2
You cannot comment on this entry
Comment of wmat:
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
Added at: 2038-01-18 22:14
Comment of Jared:
Is this up to date for Rails 2.x?
Added at: 2008-06-07 20:02