Robert Dempsey
2006-May-01 02:08 UTC
[Rails] Two developers, one on unix and one on windows
Hello all, An interesting problem, I am developing on Windows, another developer is using Unix, and our app and svn repository are running on a Linux box. We need an easy way to not keep breaking our app and each others development environs when we check in the code. The piece in question is the dispatch.fcgi. The path to ruby is (obviously) different in Windows and Unix. Has anyone run into this and what do you do? Thanks. - Rob Dempsey -- Posted via http://www.ruby-forum.com/.
Steve Koppelman
2006-May-01 02:23 UTC
[Rails] Re: Two developers, one on unix and one on windows
Why are you using FastCGI for development mode? What''s wrong with WEBrick or, at most, CGI? Doesn''t development against FastCGI force you to restart servers or processes a whole lot more than you''d otherwise need to? If you don''t need FastCGI for development, your problem disappears because Windows ignores it under those circumstances and you can simply set it to the Unixy path on both platforms. If you''ve got a good reason for doing development against FCGI, I suppose you could have a second dispatch.fcgi called somthing else (e.g. dispatch-win32.fcgi) and refer to that in the webserver conf on your windows boxes and refer to the original one on the Unixy boxes. No? Robert Dempsey wrote:> Hello all, > > An interesting problem, I am developing on Windows, another developer is > using Unix, and our app and svn repository are running on a Linux box. > We need an easy way to not keep breaking our app and each others > development environs when we check in the code. The piece in question is > the dispatch.fcgi. The path to ruby is (obviously) different in Windows > and Unix. Has anyone run into this and what do you do? Thanks. > > - Rob Dempsey-- Posted via http://www.ruby-forum.com/.
Robert Dempsey
2006-May-01 02:34 UTC
[Rails] Re: Two developers, one on unix and one on windows
Steve, We are using WEBrick. Do you know if it even pays attention to the dispatch files? Thanks. - Rob Steve Koppelman wrote:> Why are you using FastCGI for development mode? What''s wrong with > WEBrick or, at most, CGI? Doesn''t development against FastCGI force you > to restart servers or processes a whole lot more than you''d otherwise > need to? > > If you don''t need FastCGI for development, your problem disappears > because Windows ignores it under those circumstances and you can simply > set it to the Unixy path on both platforms. > > If you''ve got a good reason for doing development against FCGI, I > suppose you could have a second dispatch.fcgi called somthing else (e.g. > dispatch-win32.fcgi) and refer to that in the webserver conf on your > windows boxes and refer to the original one on the Unixy boxes. No? >-- Posted via http://www.ruby-forum.com/.
Why not put an if statement in your dispatch.cgi and set the path depending on which dir exists? Is that possible? On 5/1/06, Robert Dempsey <rdempsey@techcfl.com> wrote:> > > Steve, > > We are using WEBrick. Do you know if it even pays attention to the > dispatch files? Thanks. > > - Rob > > Steve Koppelman wrote: > > Why are you using FastCGI for development mode? What''s wrong with > > WEBrick or, at most, CGI? Doesn''t development against FastCGI force you > > to restart servers or processes a whole lot more than you''d otherwise > > need to? > > > > If you don''t need FastCGI for development, your problem disappears > > because Windows ignores it under those circumstances and you can simply > > set it to the Unixy path on both platforms. > > > > If you''ve got a good reason for doing development against FCGI, I > > suppose you could have a second dispatch.fcgi called somthing else (e.g. > > dispatch-win32.fcgi) and refer to that in the webserver conf on your > > windows boxes and refer to the original one on the Unixy boxes. No? > > > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060501/df2f3c65/attachment.html
Brian Ă…gren
2006-May-01 07:06 UTC
[Rails] Re: Two developers, one on unix and one on windows
I do the same thing (windows on my labtop / linux on my workstation) just use mongrel for development :) On 5/1/06, Liquid <has.sox@gmail.com> wrote:> > Why not put an if statement in your dispatch.cgi and set the path > depending on which dir exists? > > Is that possible? > > > On 5/1/06, Robert Dempsey <rdempsey@techcfl.com> wrote: > > > > > > Steve, > > > > We are using WEBrick. Do you know if it even pays attention to the > > dispatch files? Thanks. > > > > - Rob > > > > Steve Koppelman wrote: > > > Why are you using FastCGI for development mode? What''s wrong with > > > WEBrick or, at most, CGI? Doesn''t development against FastCGI force > > you > > > to restart servers or processes a whole lot more than you''d otherwise > > > need to? > > > > > > If you don''t need FastCGI for development, your problem disappears > > > because Windows ignores it under those circumstances and you can > > simply > > > set it to the Unixy path on both platforms. > > > > > > If you''ve got a good reason for doing development against FCGI, I > > > suppose you could have a second dispatch.fcgi called somthing else ( > > e.g. > > > dispatch-win32.fcgi) and refer to that in the webserver conf on your > > > windows boxes and refer to the original one on the Unixy boxes. No? > > > > > > > > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060501/f7de970f/attachment.html
Philip Ross
2006-May-01 09:51 UTC
[Rails] Re: Two developers, one on unix and one on windows
Robert Dempsey wrote:> We are using WEBrick. Do you know if it even pays attention to the > dispatch files? Thanks.WEBrick doesn''t use the dispatch files. -- Philip Ross http://tzinfo.rubyforge.org/ -- DST-aware timezone library for Ruby