Topic: Deployment on Windows

Hey guys, was wondering if anyone would like to share stories on their deployment of their Ruby on Rails application on Windows server. I've been doing some research and my boss has given me the ok to test out on my development server. I was hoping to get some feed back on the community to see solutions that work, failed or in the process of implementing. Any advice would be greatly appreciated.

Re: Deployment on Windows

Try to read 'Pragmatic Bookshelf - Deploying Rails Applications, A Step-by-Step Guide [May 2008]' book where everything is explained very good. I deployed several applications on a Windows Server without problems.

Re: Deployment on Windows

Thank you, I'll definitely look into that in hopes to finding a solution.

Re: Deployment on Windows

Hello again, I was browsing around looking for some solutions for my predicament. I've found Roa Lakkakula's blog talking about deploying on a windows 2003 web server. It involved using mongrel_services to deploy my web application into 3 instances and using apache. I've been trying to test a testapp and I keep running into an error. As always any assistance is greatly appreciated.

C:\Documents and Settings\gsalumbides\My Documents\Downloads>gem install win32-s
ervice-0.5.2-mswin32.gem
Temporarily enhancing PATH to include DevKit...
Successfully installed win32-service-0.5.2-x86-mswin32
1 gem installed
Installing ri documentation for win32-service-0.5.2-x86-mswin32...
Installing RDoc documentation for win32-service-0.5.2-x86-mswin32...

C:\Documents and Settings\gsalumbides\My Documents\Downloads>mongrel_rails servi
ce::install -N mongrel_testapp -p 3001 -e Production -c C:\Documents and Setting
s\gsalumbides\Desktop\testapp
C:/Ruby/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5-x86-mswin32-60/lib/http11.so: [BU
G] Segmentation fault
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]

-- control frame ----------
c:0013 p:-6178302 s:0039 b:0039 l:000038 d:000038 TOP
c:0012 p:---- s:0037 b:0037 l:000036 d:000036 CFUNC  :require
c:0011 p:0013 s:0033 b:0033 l:000032 d:000032 METHOD <internal:lib/rubygems/cust
om_require>:29
c:0010 p:0095 s:0028 b:0028 l:000027 d:000027 TOP    C:/Ruby/lib/ruby/gems/1.9.1
/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:12
c:0009 p:---- s:0026 b:0026 l:000025 d:000025 FINISH
c:0008 p:---- s:0024 b:0024 l:000023 d:000023 CFUNC  :require
c:0007 p:0013 s:0020 b:0020 l:000019 d:000019 METHOD <internal:lib/rubygems/cust
om_require>:29
c:0006 p:0066 s:0015 b:0015 l:000014 d:000014 TOP    C:/Ruby/lib/ruby/gems/1.9.1
/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:11
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC  :load
c:0003 p:0127 s:0007 b:0007 l:000264 d:0003e0 EVAL   C:/Ruby/bin/mongrel_rails:1
9
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000264 d:000264 TOP
---------------------------
-- Ruby level backtrace information ----------------------------------------
C:/Ruby/bin/mongrel_rails:19:in `<main>'
C:/Ruby/bin/mongrel_rails:19:in `load'
C:/Ruby/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:
11:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:12:
in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

C:\Documents and Settings\gsalumbides\My Documents\Downloads>

Re: Deployment on Windows

Would it be faster for me to create a virtualized environment of linux then deploy my ror app through there? If so does anyone have issues with performance? From my understanding that it would have some performance and scalability issues but for deploy on a windows-centric environment it would run just as smoothly on a vm versus natively on the windows. Also what Linux OS is best recommended for a Dell powerEdge SC1425 and Rails Production/deployment. Thank you again for the assistance.

Re: Deployment on Windows

Can some one explain to me this error? I'm still new to RoR and I'm not very good at deciphering these issues.

C:\web\testapp>mongrel_rails start -p 4001
** Starting Mongrel listening at 0.0.0.0:4001
** Starting Rails with development environment...
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/depende
ncies.rb:239:in `require': no such file to load -- dispatcher (LoadError)
        from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_su
pport/dependencies.rb:239:in `require'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_su
pport/dependencies.rb:225:in `load_dependency'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_su
pport/dependencies.rb:591:in `new_constants_in'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_su
pport/dependencies.rb:225:in `load_dependency'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_su
pport/dependencies.rb:239:in `require'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../
lib/mongrel/rails.rb:148:in `rails'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mon
grel_rails:113:in `cloaker_'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../
lib/mongrel/configurator.rb:149:in `call'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../
lib/mongrel/configurator.rb:149:in `listener'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mon
grel_rails:99:in `cloaker_'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../
lib/mongrel/configurator.rb:50:in `call'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../
lib/mongrel/configurator.rb:50:in `initialize'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mon
grel_rails:84:in `new'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mon
grel_rails:84:in `run'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../
lib/mongrel/command.rb:212:in `run'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mon
grel_rails:281
        from C:/Ruby187/bin/mongrel_rails:19:in `load'
        from C:/Ruby187/bin/mongrel_rails:19

Thanks for the assist.