Duzenbury, Rich wrote:
I’m new at rails and am in the midst of deploying my first app to a
server. The app was developed on windows. I used Capistrano to
and found a few issues:
- I must chmod 755 dispatch.cgi each time I deploy
You can mark dispatch.fcgi executable in Subversion. I think the
is something like
svn propset svn:execute public/dispatch.fcgi
Thanks, I’ll give that a whirl.
See the SVN docs for more info on propset.
- script/parse/reaper also doesn’t have the executable attributes
the deployment fails.
3) database.yml as checked out from svn isn’t correct.
Then there’s something wrong with your database.yml. Are you sure the
production settings are correct? Does the database exist? Remember
Migrations doesn’t create the empty database. That has to be there
before migrate can start loading it with table definitions and stuff.
Sorry, when I say that it’s not correct, I mean that it has the settings
that are checked in from subversion. I.E., it points to my localhost
version of my own mysql server, and uses my id’s and passwords.
I need a completely different database.yml when deploying to production,
and I’m not sure how to get it.
Imagine five developers, all with different database.yml files…
Also, a few scripts get generated with shebang lines like
The only shebang I change for deployment is dispatch.fcgi. If you need
others, go ahead and change them. The shebang doesn’t matter on Win32
unless you’re using a Unix-style Windows shell like Cygwin.
Thanks for the info!