# Two developers, one on unix and one on windows

**URL:** <https://www.ruby-forum.com/t/two-developers-one-on-unix-and-one-on-windows/59191>\
**Category:** Rails\
**Created:** [May 1, 2006, 4:07am UTC](https://www.ruby-forum.com/t/two-developers-one-on-unix-and-one-on-windows/59191 "2006-05-01T04:07:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [May 1, 2006, 4:07am UTC](https://www.ruby-forum.com/t/two-developers-one-on-unix-and-one-on-windows/59191/1 "2006-05-01T04:07:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [May 1, 2006, 4:23am UTC](https://www.ruby-forum.com/t/two-developers-one-on-unix-and-one-on-windows/59191/2 "2006-05-01T04:23:27Z")

</div>

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 D. 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

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [May 1, 2006, 4:33am UTC](https://www.ruby-forum.com/t/two-developers-one-on-unix-and-one-on-windows/59191/3 "2006-05-01T04:33:52Z")

</div>

Steve,

We are using WEBrick. Do you know if it even pays attention to the  
dispatch files? Thanks.

- Rob

Steve K. 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?

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [May 1, 2006, 1:00pm UTC](https://www.ruby-forum.com/t/two-developers-one-on-unix-and-one-on-windows/59191/4 "2006-05-01T13:00:59Z")

</div>

Thanks everyone for your help with this. Problem solved.

- Rob D.

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [May 3, 2006, 6:57pm UTC](https://www.ruby-forum.com/t/two-developers-one-on-unix-and-one-on-windows/59191/5 "2006-05-03T18:57:06Z")

</div>

Why not put an if statement in your dispatch.cgi and set the path  
depending  
on which dir exists?

Is that possible?

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [May 3, 2006, 6:57pm UTC](https://www.ruby-forum.com/t/two-developers-one-on-unix-and-one-on-windows/59191/6 "2006-05-03T18:57:09Z")

</div>

I do the same thing (windows on my labtop / linux on my workstation)

just use mongrel for development 🙂

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [May 3, 2006, 6:57pm UTC](https://www.ruby-forum.com/t/two-developers-one-on-unix-and-one-on-windows/59191/7 "2006-05-03T18:57:13Z")

</div>

Robert D. 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 R.  
[http://tzinfo.rubyforge.org/](http://tzinfo.rubyforge.org/) – DST-aware timezone library for Ruby
