Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

adding ejs as static file

oren's Avatar

oren

22 Apr, 2011 02:24 PM

I'm using *.ejs files (for template with jQuery) as static file.
For some reason, it cannot be loaded (probably ngix is not configured to serve it?)

Example:
http://this-jakarten.apphb.com/static/js/views/board/feature.ejs?ve...

How can I fix that?

  1. 1 Posted by oren on 22 Apr, 2011 02:49 PM

    oren's Avatar

    I have this in my web.config, of course:

    <system.webServer>
        <staticContent>
            <remove fileExtension=".ejs" />
            <mimeMap fileExtension=".ejs" mimeType="text/plain" />
        </staticContent>
    <system.webServer>
    
  2. Support Staff 2 Posted by friism on 22 Apr, 2011 04:07 PM

    friism's Avatar

    Are you sure the .ejs file has Build Action set to Content? If not, the file is not included in what AppHarbor deploys to web servers.

  3. friism closed this discussion on 22 Apr, 2011 04:07 PM.

  4. oren re-opened this discussion on 22 Apr, 2011 05:02 PM

  5. 3 Posted by oren on 22 Apr, 2011 05:02 PM

    oren's Avatar

    yep, that was it, thanks!

  6. friism closed this discussion on 22 Apr, 2011 05:05 PM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac