Brian H. wrote:
Please be specific about what won’t work. I’m sure I can help you once
you’ve given me more to go on.
- Did you edit config/environment.rb and set the app to production
- Did you edit public/.htaccess and change dispatch.cgi to
- Did you set public/dispatch.* to chmod 755?
Can you even get the “welcome to Rails” page to display? It’s just HTML
should be enough to prove that the subdomain is mounted properly.
I can get the “Welcome to Rails” page to display as soon as I create my
new rails app on the server. However, I still can’t get the application
to work. Here is what I’m doing:
- Create new rails app on the server
- Change instance of dispatch.cgi to dispatch.fcgi in public/.htaccess
- Set application to production mode in config/environment.rb
- Run this command: chmod -R u+rwX,go-w public log (from the DH wiki,
This command sets the public directory and dispatch.fcgi to not be
world-writable (or group-writable, just in case), and the log directory
to be writable so that log and crash files can be generated.)
- Edit config/database.yml with the correct database information.
After all of these steps, the “Welcome to Rails” page still displays.
If I try to create a new scaffold, I get a mysql connection error:
Can’t connect to local MySQL server through socket
I have verified and reverified my database configuration and everything
is correct in config/database.yml.
I don’t know what I’m doing wrong… please help!