Closed acatighera closed 10 years ago
what ruby
version and executable-hooks
version are you using?
ruby 2.0.0p247
I believe I had 1.2.1 installed, I had to remove it to get thin running.
can you test again with 1.3.1
? similar issues #5, #7, #8.
those lines are relevant: https://github.com/mpapis/executable-hooks/blob/master/bin/ruby_executable_hooks#L4-L5
can you find a place in thin that would conflict with it if you still get problems in 1.3.1
?
It was happening in prod so I can't retest easily.
The command is getting generated here: https://github.com/macournoyer/thin/blob/master/lib/thin/command.rb#L50 self.class.script comes from $PROGRAM_NAME which is pulled from shebang in bin file I believe.
I assume this is the same thing that was already fixed in #8 - closing the issue, please feel free to provide any more details if you can reproduce it with latest version and I will reopen and continue investigation.
If you run
thin start -s3
you will get ruby not found error. This is due to the fact that theCommand.script
var gets set to "ruby /path/to/thin" instead of "/path/to/thin". This value comes from$PROGRAM_NAME
.