Thin and Bundler on Windows Rails

Trying to get a fine job with Bundle on Windows, I know a major PITA but anyway, I'm new to the Thin and Bundle gem, I'm on Ruby 1.8.6 and Rails 2.3.5 and trying to get the app running on my laptop, the app uses thin and Bundle gem for setting gems. I noticed this package created a .bundle folder in My Documents folder and put all the jewels there for the application. When I tried "thin run" it reported "thin" is not recognized as an internal or external command valid program or batch file.

I check the environment path and it is not pointing to the .bundle folder at all and I found there is a thin .bat in

C:\Documents and Settings\Bob\.bundle\ruby\1.8\bin

      

When I tried "C: \ Documents and Settings \ Bob.bundle \ ruby ​​\ 1.8 \ bin \ thin" start it gave me another error

c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:777:in
`report_activate_error': Could not find RubyGem thin (>= 0) (Gem::LoadError)
    from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:211:in `activate'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1056:in `gem'
from C:/Documents and Settings/Bob/.bundle/ruby/1.8/bin/thin:18

      

I get the same error if I add "C: \ Documents and Settings \ Bob.bundle \ ruby ​​\ 1.8 \ bin" to the env path. Does anyone know that I can get this to work?

+2


a source to share


1 answer


For those of you new to bundler (like me), the command

bundle exec thin start

      



Hope someone else is scratching their heads.

+3


a source







All Articles