windows service for Thin server not working
Issue #73
resolved
using uru with 2 Ruby versions. They are the same exact version/build of Ruby.
Using one of the Ruby's with the proper gems, I am able to start the thin server through command prompt and test the application successfully. When I create a windows service for running the thin server, the service is able to start with no errors, but the application does not load and says "Service Temporarily Unavailable".
Am I doing something wrong?
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Closing as this doesn't appear to be an uru issue. If your testing shows otherwise, feel free to re-open.
- Log in to comment
I've never tried uru and windows services. That said, since uru is essentially a
PATH
envar changer, the issue is likely that your service isn't getting a correctPATH
for some reason. You may need to tweak the service config to ensure it has the absolute path to yourruby.exe
or perhaps your<RUBY_INSTALL_DIR>\bin
dir.I only use ruby these days for a few legacy projects and do not use thin any more. This may or may not be relevant to your scenario, but when I look at the
bundler.bat
wrapper created when the bundler gem was installed, I see the followingwhich calls the
bundler
ruby script with the "correct" ruby. I suspect yourthin.bat
wrapper looks the same.All of this makes me think
PATH
config for your windows service is the problem rather than a bug with uru.