Use pre-existing Ruby installation

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 4
Joined: 07 May 2012, 12:55

Use pre-existing Ruby installation

13 May 2013, 19:43

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 ***************
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>

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Use pre-existing Ruby installation

14 May 2013, 07:51

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

User avatar
Posts: 4
Joined: 07 May 2012, 12:55

Re: Use pre-existing Ruby installation

14 May 2013, 17:15

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.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Use pre-existing Ruby installation

15 May 2013, 09:52

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.

Return to Helicon Zoo

Who is online

Users browsing this forum: Bing [Bot] and 15 guests