Here's what I did
- rails voicealmighty
- cd voicealmighty
- ruby/script/generate controller app
- cd app/controllers
- edit app_controller.rb
class AppController < ApplicationController
def greeting
end
- cd ../views/app
- edit greeting.rhtml
<html>
<head>
<title>tted test</title>
</head>
<body>
<h1> its working!</h1>
</body>
</html>
-----------------------------
Then I follwed the FastCGI tutorial
- created the mysql db & username
- edited databse.yml
- added ENV['RAILS_ENV'] ||= 'production' to environment.rb
- edited .htaccess
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
commented out
# General Apache options
# AddHandler fastcgi-script .fcgi
# AddHandler cgi-script .cgi
- mv ~/public_html ~/public_html_backup
- ln -s ~/voicealmighty/public ~/public_html
- cd voicealmighty
- mongrel_rails stop
- el_rails start -e production -p 4094 -d
now I should be able to see "its working!" from
http://<my ip address>:4094/app/greeting right?
No. it just hangs.
Help!