Capistrano / developing on win32 / deplyoying on Linux

Hi,

I’m new at rails and am in the midst of deploying my first app to a test
server. The app was developed on windows. I used Capistrano to deploy,
and found a few issues:

  1. I must chmod 755 dispatch.cgi each time I deploy
  2. script/parse/reaper also doesn’t have the executable attributes so
    the deployment fails.
  3. database.yml as checked out from svn isn’t correct.

Also, a few scripts get generated with shebang lines like
#!c:\ruby…

Which later have to be changed.

Anyone solved this? If so, how?

Thanks.

Regards,
Rich

Duzenbury, Rich wrote:

Hi,

I’m new at rails and am in the midst of deploying my first app to a test
server. The app was developed on windows. I used Capistrano to deploy,
and found a few issues:

  1. I must chmod 755 dispatch.cgi each time I deploy

You can mark dispatch.fcgi executable in Subversion. I think the command
is something like

svn propset svn:execute public/dispatch.fcgi

See the SVN docs for more info on propset.

  1. script/parse/reaper also doesn’t have the executable attributes so
    the deployment fails.
  2. 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 that
Migrations doesn’t create the empty database. That has to be there
before migrate can start loading it with table definitions and stuff.

Also, a few scripts get generated with shebang lines like
#!c:\ruby…

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.

Duzenbury, Rich wrote:

Hi,

I’m new at rails and am in the midst of deploying my first app to a
test

server. The app was developed on windows. I used Capistrano to
deploy,

and found a few issues:

  1. I must chmod 755 dispatch.cgi each time I deploy

You can mark dispatch.fcgi executable in Subversion. I think the
command
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.

  1. script/parse/reaper also doesn’t have the executable attributes
    so

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
that
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
#!c:\ruby…

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!

Regards,
Rich

Hello Rich,

2006/7/13, Duzenbury, Rich [email protected]:

I’m new at rails and am in the midst of deploying my first app to a test
server. The app was developed on windows. I used Capistrano to deploy,
and found a few issues:

You might find this instructive:

Subversion Primer for Rails Projects
http://blog.teksol.info/articles/2006/03/09/subversion-primer-for-rails-projects

Hope that helps !

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs