Un documented Rails error.

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 1
Joined: 12 Feb 2016, 22:16

Un documented Rails error.

12 Feb 2016, 22:25

I have spent the past few hours trying to deploy my Ruby on Rails app to my Windows Server 2008 R2 vps running IIS 7.5.

I thought it was going well up till the point I got this error.


Code: Select all
Error
Helicon Zoo module has caught up an error. Please see the details below.
Windows error
The system cannot find the path specified. (ERROR CODE: 3)
Internal module error
message: Can't CreateDirectory '' file type: ZooException file: Common\WinApi.cpp line: 253 version: 3.1.98.538


The path of the CreateDirectory bit seems strange to me but can't figure out where it's coming from.

The site runs fine on my local machine. But my local machine is on Fedora so the web.config file on my vps could well be wrong.


Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>

    <heliconZoo>
            <clear />
            <application name="ruby.project">
                <environmentVariables>
                    <add name="RAILS_RELATIVE_URL_ROOT" value="%APPL_VIRTUAL_PATH%" />
                    <add name="DEPLOY_FILE" value="deploy.rb" />
                    <add name="RACK_ENV" value="development" />
                    <add name="CONSOLE_URL" value="console" />
                </environmentVariables>
            </application>
     </heliconZoo>


    <handlers>
      <remove name="ruby.project#x86" />
      <remove name="ruby.project#x64" />
            <add name="ruby.project#x64" path="*" verb="*" modules="HeliconZoo_x64" scriptProcessor="ruby.2.0.rack" resourceType="Unspecified" requireAccess="Script" preCondition="bitness64" />
            <add name="ruby.project#x86" path="*" verb="*" modules="HeliconZoo_x86" scriptProcessor="ruby.2.0.rack" resourceType="Unspecified" requireAccess="Script" preCondition="bitness32" />
     
    </handlers>


    <!-- URL Rewrite rules to pass static files, limit console access, etc. -->
    <rewrite>
      <rules>

        <!-- This rule rewrites '/' requests to /public/index.html -->
        <rule name="index" stopProcessing="true">
          <match url="^$" ignoreCase="false" />
          <conditions logicalGrouping="MatchAll" trackAllCaptures="true">
            <add input="{APPL_PHYSICAL_PATH}" pattern="(.*)" ignoreCase="false" />
            <add input="{C:1}public\index.html" matchType="IsFile" />
          </conditions>
          <action type="Rewrite" url="public/index.html" />
        </rule>

        <rule name="Static Files" stopProcessing="true">
          <match url="^(?!public)(.*)$" ignoreCase="false" />
          <conditions logicalGrouping="MatchAll" trackAllCaptures="true">
            <add input="{APPL_PHYSICAL_PATH}" pattern="(.*)" ignoreCase="false" />
            <add input="{C:1}public\{R:1}" matchType="IsFile" />
          </conditions>
          <action type="Rewrite" url="public/{R:1}" />
        </rule>

        <rule name="Rails 3.1 assets" stopProcessing="true">
          <match url="^assets/(.*)$" ignoreCase="true" />
          <conditions logicalGrouping="MatchAll" trackAllCaptures="true">
            <add input="{APPL_PHYSICAL_PATH}" pattern="(.*)" ignoreCase="false" />
            <add input="{C:1}app\assets\{R:1}" matchType="IsFile" />
          </conditions>
          <action type="Rewrite" url="app/assets/{R:1}" />
        </rule>
       
        <!-- This rule shows welcome page when no Rack application exist. -->
        <rule name="Rewrite to Zoo index if that's an empty application" stopProcessing="true">
          <match url="^/?$" ignoreCase="false" />
          <conditions logicalGrouping="MatchAll" trackAllCaptures="true">
            <add input="{APPL_PHYSICAL_PATH}" pattern="(.*)" ignoreCase="false" />
            <add input="{C:1}config.ru" matchType="IsFile" negate="true" />
          </conditions>

          <action type="Rewrite" url="public/zoo-index.html" />
        </rule>

      </rules>   
    </rewrite>

  </system.webServer>
</configuration>



I've search through Google but can't seem to find anything. Does anyone here have any suggestions?

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 0 guests