Duzenbury, Rich
2006-Jul-13 15:33 UTC
[Rails] 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
Steve Koppelman
2006-Jul-13 16:00 UTC
[Rails] Re: Capistrano / developing on win32 / deplyoying on Linux
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 deployYou 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.> 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.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. -- Posted via http://www.ruby-forum.com/.
Duzenbury, Rich
2006-Jul-13 16:27 UTC
[Rails] Re: Capistrano / developing on win32 / deplyoying on Linux
> Duzenbury, Rich wrote: > > Hi, > > > > I''m new at rails and am in the midst of deploying my first app to atest> > server. The app was developed on windows. I used Capistrano todeploy,> > 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 thecommand> is something like > > svn propset svn:execute public/dispatch.fcgiThanks, I''ll give that a whirl.> > See the SVN docs for more info on propset. > > > 2) script/parse/reaper also doesn''t have the executable attributesso> > 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? Rememberthat> 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
Francois Beausoleil
2006-Jul-13 16:57 UTC
[Rails] Capistrano / developing on win32 / deplyoying on Linux
Hello Rich, 2006/7/13, Duzenbury, Rich <RDuzenbury@theimg.net>:> 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 ! -- Fran?ois Beausoleil http://blog.teksol.info/