# Webistrano on Windows

**URL:** <https://www.ruby-forum.com/t/webistrano-on-windows/126349>\
**Category:** Rails\
**Created:** [January 17, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/webistrano-on-windows/126349 "2008-01-17T16:42:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cskidmore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Post date:** [January 17, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/webistrano-on-windows/126349/1 "2008-01-17T16:42:41Z")

</div>

Greetings. I just read a note on Webistrano’s website about Webistrano  
not running on Windows.

Does anyone know if there’s a patch to get it running? I’d like to use  
this tool, but I’m using Windows XP for the time being and need to  
deploy from there.

When I tried running Webistrano for the first time last night it threw  
an exception when trying to start the server.

---

<div class="post-metadata">

**Author:** ![cskidmore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Post date:** [January 17, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/webistrano-on-windows/126349/2 "2008-01-17T16:55:59Z")

</div>

Here’s the callstack:

C:\www\webistrano-1.2\>ruby script\server -d -p 3000 -e production  
=\> Booting WEBrick…  
You are running Ruby 1.8.6, which has a bug in its threading  
implementation.  
You are liable to encounter deadlocks running Capistrano, unless you  
install  
the fastthread library, which is available as a gem:  
gem install fastthread  
=\> Rails application started on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
[2008-01-17 09:53:15] INFO WEBrick 1.3.1  
[2008-01-17 09:53:15] INFO ruby 1.8.6 (2007-03-13) [i386-mswin32]  
c:/ruby/lib/ruby/1.8/webrick/server.rb:29:in `fork': the fork() function is unimplemented on this machine (NotImplementedError) from c:/ruby/lib/ruby/1.8/webrick/server.rb:29:in `start’  
from c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' from C:/www/webistrano-1.2/vendor/rails/railties/lib/webrick_server.rb:62:in `dispatch’  
from  
C:/www/webistrano-1.2/vendor/rails/railties/lib/commands/servers/webrick.rb:65  
from  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’  
from  
C:/www/webistrano-1.2/vendor/rails/activesupport/lib/active\_support/dependencies.rb:495:in  
`require' from C:/www/webistrano-1.2/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new\_constants\_in’  
from  
C:/www/webistrano-1.2/vendor/rails/activesupport/lib/active\_support/dependencies.rb:495:in  
`require' from C:/www/webistrano-1.2/vendor/rails/railties/lib/commands/server.rb:39 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem\_original\_require’  
from  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require’  
from script/server:3

---

<div class="post-metadata">

**Author:** ![cskidmore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Post date:** [January 17, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/webistrano-on-windows/126349/3 "2008-01-17T17:58:30Z")

</div>

Hi,

Cody S. schrieb:

> Greetings. I just read a note on Webistrano’s website about Webistrano  
> not running on Windows.
> 
> Does anyone know if there’s a patch to get it running?

Not yet, the problem is that the background-deployment does not work in  
windows. We are working on a solution for that.

> When I tried running Webistrano for the first time last night it threw  
> an exception when trying to start the server.

The server should come up normaly like in any other Rails application.  
Just the background-deployment part is Unix only.

Jonathan

–  
Jonathan W.  
[http://blog.innerewut.de](http://blog.innerewut.de)

---

<div class="post-metadata">

**Author:** ![cskidmore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Post date:** [January 17, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/webistrano-on-windows/126349/4 "2008-01-17T18:50:59Z")

</div>

Jonathan W. wrote:

> The server should come up normaly like in any other Rails application.  
> Just the background-deployment part is Unix only.

Have you tried it? I actually installed the fastthread gem as  
instructed in the above callstack, but it had no affect.

If anyone else got past the callstack error on Windows, I’d like to  
know.

I’ll try using Capistrano directly today and hope it runs on Windows.

---

<div class="post-metadata">

**Author:** ![cskidmore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Post date:** [January 17, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/webistrano-on-windows/126349/5 "2008-01-17T18:53:59Z")

</div>

The other thing worth noting is I’m running Rails 2.0.2.

---

<div class="post-metadata">

**Author:** ![cskidmore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Post date:** [January 17, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/webistrano-on-windows/126349/6 "2008-01-17T22:53:36Z")

</div>

Cody,

“fork()” is a system-level call that is specific to Un\*x operating  
systems.

No such thing in Windows. So the piece that you’re concerned with would  
have to be re-written sans-fork().

Wes

---

<div class="post-metadata">

**Author:** ![cskidmore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Post date:** [January 18, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/webistrano-on-windows/126349/7 "2008-01-18T23:39:03Z")

</div>

On 1/17/08, Cody S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Greetings. I just read a note on Webistrano’s website about Webistrano  
> not running on Windows.
> 
> Does anyone know if there’s a patch to get it running? I’d like to use  
> this tool, but I’m using Windows XP for the time being and need to  
> deploy from there.

Have you considered installing a compatible OS in a VM in your  
windoze? I work with Oracle on my Mac this way.

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)
