Hi, Ik have a project in CVS in my linux box. Now I would like to work on it locally in my win xp machine. I checked out a copy on my windows box (which was hard enough getting svn over SSH to work properly, but anyways...) When I run ruby script/server nothing much happens: C:\railsapp>ruby script/server => Booting WEBrick... C:\railsapp> Browsing to localhost:3000 doesn''t work. I figured it may have something to do with the paths so I ran the rails command and overwrote the "scripts" directory. This made no difference at all. Help much appreciated! Jeroen
Jeroen Houben wrote:> Hi, > > Ik have a project in CVS in my linux box. Now I would like to work on > it locally in my win xp machine.FYI: I run 0.14.3 and ruby 1.8.2 on both boxes. Jeroen
My guess is that the shebang line in your dispatch.rb / dispatch.cgi / dispatch.fcgi are all still pointing to your linux ruby location /usr/bin/ruby or something like that. Change them to c:/ruby/bin/ruby.exe and see if it works. (This really ticks me off that we have to do this and I wish the rails folks would come up with a workaround.) -bph -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jeroen Houben Sent: Tuesday, November 15, 2005 1:28 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] moving from linux to windows woes Hi, Ik have a project in CVS in my linux box. Now I would like to work on it locally in my win xp machine. I checked out a copy on my windows box (which was hard enough getting svn over SSH to work properly, but anyways...) When I run ruby script/server nothing much happens: C:\railsapp>ruby script/server => Booting WEBrick... C:\railsapp> Browsing to localhost:3000 doesn''t work. I figured it may have something to do with the paths so I ran the rails command and overwrote the "scripts" directory. This made no difference at all. Help much appreciated! Jeroen _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 11/15/05, Hogan, Brian P. <HOGANBP-VnAisaAFmHY@public.gmane.org> wrote:> My guess is that the shebang line in your dispatch.rb / dispatch.cgi / > dispatch.fcgi are all still pointing to your linux ruby location > /usr/bin/ruby or something like that. > > Change them to c:/ruby/bin/ruby.exe and see if it works. > > (This really ticks me off that we have to do this and I wish the rails > folks would come up with a workaround.) > > -bphhere''s a workaround: ruby script/server -- rick http://techno-weenie.net
Rick Olson wrote:>On 11/15/05, Hogan, Brian P. <HOGANBP-VnAisaAFmHY@public.gmane.org> wrote: > > >>My guess is that the shebang line in your dispatch.rb / dispatch.cgi / >>dispatch.fcgi are all still pointing to your linux ruby location >>/usr/bin/ruby or something like that. >> >>Change them to c:/ruby/bin/ruby.exe and see if it works. >> >>(This really ticks me off that we have to do this and I wish the rails >>folks would come up with a workaround.) >> >>-bph >> >> > >here''s a workaround: > >ruby script/server > >A workaround for...? This is the standard command for starting Webrick with your webapp. ruby script/server and ruby script\server both give me the same result. I have overwritten the dispatch files so they include the proper shebang line.. Jeroen
Jeroen Houben wrote:> Hi, > > Ik have a project in CVS in my linux box. Now I would like to work on > it locally in my win xp machine. I checked out a copy on my windows > box (which was hard enough getting svn over SSH to work properly, but > anyways...) > > When I run ruby script/server nothing much happens: > > C:\railsapp>ruby script/server > => Booting WEBrick... > > C:\railsapp> > > Browsing to localhost:3000 doesn''t work. I figured it may have > something to do with the paths so I ran the rails command and > overwrote the "scripts" directory. This made no difference at all.It seems this line in environment.rb seems to cause a problem on windows.. Player.image_path = "/images/players/" After commenting out this line, the server starts normally. It would be nice if I could some better error message somewhere. There is no startup log for webrick or is there? I''ll investigate
> A workaround for...? This is the standard command for starting Webrick > with your webapp. ruby script/server and ruby script\server both give me > the same result. > > I have overwritten the dispatch files so they include the proper shebang > line..I was actually referring to the email I quoted that mentioned the shebang lines... Seems like you''re experiencing a hard crash somewhere if it''s just dumping you back to the console with no output. Does a standard rails app start correctly? Does script/console work? Have you checked your error logs? -- rick http://techno-weenie.net
Based on a guess from your Player.image_path code, you could be using RMagick to do things with images. You need to have the RMagick gem installed on your Windows machine - there is a binary install for this code that works great. Also, you need to make sure your end-of-line characters are correct for the different environments. If you save a script file with Windows EOLs, these won''t run on the linux machine. Subversion has a property setting to generate the correct thing for the given environment, CVS probably has a similar setting. -----Original Message----- From: Jeroen Houben [mailto:jeroen-aHd7JyfBtzlmR6Xm/wNWPw@public.gmane.org] Sent: Tuesday, November 15, 2005 11:54 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] moving from linux to windows woes Jeroen Houben wrote:> Hi, > > Ik have a project in CVS in my linux box. Now I would like to work on > it locally in my win xp machine. I checked out a copy on my windows > box (which was hard enough getting svn over SSH to work properly, but > anyways...) > > When I run ruby script/server nothing much happens: > > C:\railsapp>ruby script/server > => Booting WEBrick... > > C:\railsapp> > > Browsing to localhost:3000 doesn''t work. I figured it may have > something to do with the paths so I ran the rails command and > overwrote the "scripts" directory. This made no difference at all.It seems this line in environment.rb seems to cause a problem on windows.. Player.image_path = "/images/players/" After commenting out this line, the server starts normally. It would be nice if I could some better error message somewhere. There is no startup log for webrick or is there? I''ll investigate _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Tom Fakes wrote:>Based on a guess from your Player.image_path code, you could be using >RMagick to do things with images. >Thanks Tom, you guessed right, I''m impressed ;-) Indeed that code loads the Player class which requires RMagick. I still think an error message should be thrown somewhere though.. Should I file a bug report for this you reckon? I tried installing RMagick by downloading and installing the gem. Still have some problems getting it to work, it needs some bz2.dll file - I''ll need to investigate that.>You need to have the RMagick gem >installed on your Windows machine - there is a binary install for this code >that works great. > >Also, you need to make sure your end-of-line characters are correct for the >different environments. If you save a script file with Windows EOLs, these >won''t run on the linux machine. Subversion has a property setting to >generate the correct thing for the given environment, CVS probably has a >similar setting. > >Yes, it shouldn''t be too hard to get that worked out with SVN. Developing on windows and running on Linux is still not very straightforward if you ask me. Thanks again! Jeroen
Jeroen Houben wrote:> Tom Fakes wrote: > >> Based on a guess from your Player.image_path code, you could be using >> RMagick to do things with images. > > Thanks Tom, you guessed right, I''m impressed ;-) > Indeed that code loads the Player class which requires RMagick. I > still think an error message should be thrown somewhere though.. > Should I file a bug report for this you reckon? > > I tried installing RMagick by downloading and installing the gem. > Still have some problems getting it to work, it needs some bz2.dll > file - I''ll need to investigate that.Didn''t read the docs. I forgot to run the post install script. Works great now! Jeroen
Hi First comment would be it should be ruby script\server But it appears that ''something'' is happening. For what it''s worth I''ve been developing my current app under XP/OS X and Linux and have had no problems running between any of them. As long as my postgres settings were the same everything just ''worked''. Ian On 15 Nov 2005, at 19:28, Jeroen Houben wrote:> Hi, > > Ik have a project in CVS in my linux box. Now I would like to work > on it locally in my win xp machine. I checked out a copy on my > windows box (which was hard enough getting svn over SSH to work > properly, but anyways...) > > When I run ruby script/server nothing much happens: > > C:\railsapp>ruby script/server > => Booting WEBrick... > > C:\railsapp> > > Browsing to localhost:3000 doesn''t work. I figured it may have > something to do with the paths so I ran the rails command and > overwrote the "scripts" directory. This made no difference at all. > > Help much appreciated! > > Jeroen > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Check your path to the ruby executable. I had to create a custom dispatch-win.fcgi for mine which used the second ruby path. With the latest version or Rails, it supposed to just grab the ENV path, and can use that instead, but I am not sure what version you are running. Warmest regards, Nathan. -------------------------------------------------------------- Nathaniel S. H. Brown Toll Free 1.877.4.INIMIT Inimit Innovations Phone 604.724.6624 www.inimit.com Fax 604.444.9942> -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ian J Cottee > Sent: November 15, 2005 1:13 PM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails] moving from linux to windows woes > > Hi > > First comment would be it should be > > ruby script\server > > But it appears that ''something'' is happening. For what it''s > worth I''ve been developing my current app under XP/OS X and > Linux and have had no problems running between any of them. > As long as my postgres settings were the same everything just > ''worked''. > > Ian > > > On 15 Nov 2005, at 19:28, Jeroen Houben wrote: > > > Hi, > > > > Ik have a project in CVS in my linux box. Now I would like > to work on > > it locally in my win xp machine. I checked out a copy on my windows > > box (which was hard enough getting svn over SSH to work > properly, but > > anyways...) > > > > When I run ruby script/server nothing much happens: > > > > C:\railsapp>ruby script/server > > => Booting WEBrick... > > > > C:\railsapp> > > > > Browsing to localhost:3000 doesn''t work. I figured it may have > > something to do with the paths so I ran the rails command and > > overwrote the "scripts" directory. This made no difference at all. > > > > Help much appreciated! > > > > Jeroen > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Nathaniel S. H. Brown wrote:>Check your path to the ruby executable. > >I had to create a custom dispatch-win.fcgi for mine which used the second >ruby path. With the latest version or Rails, it supposed to just grab the >ENV path, and can use that instead, but I am not sure what version you are >running. > >Hi Nathan, It''s working okay now, even without changing the paths (0.14.3). I needed to install RMagick on my windows box. I would have found that out a lot sooner if some helpful error msg would have been thrown... Jeroen