Webistrano on Windows

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.

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
[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

Hi,

Cody Skidmore 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 Weiss 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.

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

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

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