Use pre-existing Ruby installation
4 posts
• Page 1 of 1
Use pre-existing Ruby installation
I'm attempting to use Zoo with an existing Ruby 1.9.2 installation to serve up a Thin based Sinatra app.
I'm tweaking the applicationHost.config as shown below but I am unable to get Zoo to use the ruby instance installed in c:\ruby192. I've replaced all references to the default c:\ruby19 both here and in my sytem path with no luck. When I hit may app I'm seeing the appFullPath and appArguments still pointing to c:\Ruby19.
Is Zoo hard-coded to work with fixed ruby install paths or am I missing some simple configuration step?
Thanks!
-David
***********ORIGINAL ***************
***********NEW***************
I'm tweaking the applicationHost.config as shown below but I am unable to get Zoo to use the ruby instance installed in c:\ruby192. I've replaced all references to the default c:\ruby19 both here and in my sytem path with no luck. When I hit may app I'm seeing the appFullPath and appArguments still pointing to c:\Ruby19.
Is Zoo hard-coded to work with fixed ruby install paths or am I missing some simple configuration step?
Thanks!
-David
***********ORIGINAL ***************
- Code: Select all
<add name="ruby.1.9.http" displayName="Ruby 1.9 http" fullPath="%SystemDrive%\Ruby19\bin\ruby.exe" arguments="%APP_WORKER% -e %RACK_ENV% -a %HOST% -p %PORT%" transport="tcp" protocol="http">
<environmentVariables>
<add name="HOME" value="%APPL_PHYSICAL_SHORT_PATH%" />
<add name="GEM_HOME" value="%APPL_PHYSICAL_SHORT_PATH%\GEM_HOME" />
<add name="Path" value="%SystemDrive%\Ruby19\bin;%SystemDrive%\Ruby19\devkit\bin;%APPL_PHYSICAL_SHORT_PATH%\GEM_HOME\bin;%Path%" />
</environmentVariables>
</add>
***********NEW***************
- Code: Select all
<add name="ruby.1.9.http" displayName="Ruby 1.9.2 http" fullPath="%SystemDrive%\Ruby192\bin\ruby.exe" arguments="%APP_WORKER% -e %RACK_ENV% -a %HOST% -p %PORT%" transport="tcp" protocol="http">
<environmentVariables>
<add name="HOME" value="%APPL_PHYSICAL_SHORT_PATH%" />
<add name="GEM_HOME" value="C:\Ruby192\lib\ruby\gems\1.9.1\gems" />
<add name="Path" value="C:\Ruby192\bin\;%SystemDrive%\devkit\bin;%Path%" />
</environmentVariables>
</add>
Re: Use pre-existing Ruby installation
Hello, David
Please try it this way
<add name="HOME" value="%APPL_PHYSICAL_SHORT_PATH%" />
<add name="GEM_HOME" value="%APPL_PHYSICAL_SHORT_PATH%\GEM_HOME" />
<add name="Path" value="C:\Ruby192\bin\;%SystemDrive%\devkit\bin;%Path%" />
And please show the error you get.
Also please check NTFS permissions: IIS user should be granted Read permission for C:\Ruby192
Please try it this way
<add name="HOME" value="%APPL_PHYSICAL_SHORT_PATH%" />
<add name="GEM_HOME" value="%APPL_PHYSICAL_SHORT_PATH%\GEM_HOME" />
<add name="Path" value="C:\Ruby192\bin\;%SystemDrive%\devkit\bin;%Path%" />
And please show the error you get.
Also please check NTFS permissions: IIS user should be granted Read permission for C:\Ruby192
Re: Use pre-existing Ruby installation
Hmm.. that didn't seem to help, it still tries to execute via the c:\ruby19\ installation
appFullPath: C:\Ruby19\bin\ruby.exe
FYI I'm using the beta Zoo install (2.0.87.379)
I'm going to try down-grading to the current production version and re-test.
appFullPath: C:\Ruby19\bin\ruby.exe
FYI I'm using the beta Zoo install (2.0.87.379)
I'm going to try down-grading to the current production version and re-test.
Re: Use pre-existing Ruby installation
Hello,
Are you sure it's not IIS Express?
Please show the complete path to applicationHost.config.
And please show us the 500 error Zoo shows and the logs.
Are you sure it's not IIS Express?
Please show the complete path to applicationHost.config.
And please show us the 500 error Zoo shows and the logs.
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: Bing [Bot] and 15 guests