Rails development mode, no javascript runtime

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 18
Joined: 30 May 2012, 23:43

Rails development mode, no javascript runtime

13 Aug 2012, 04:25

Howdy.

This is an interesting one. Running a rails app via zoo in development mode and it can't find the JS runtime (which of course rails must use in dev is using coffeescript etc).

It complains that it can't find a suitable runtime, this is baffling as it exists on windows. Even more so considering this

1) I can run assets:precompile fine from a terminal (with ruby etc paths set).
2) I can start up thin in development mode from a vanilla command prompt
3) And of course I can run the server fine in production mode (no requirement to compile JS if it's already been compiled)

This has me stumped. Javascript is fine if I'm manually doing it, but something to do with Zoo is causing issues, any recommendations?. It's almost as if zoo is locking somethign down. I even attempted to install "therubyrhino" to give it an alternative JS runtime, but it doesn't pick that up either.


Granted I do my dev work in linux anyway, but I wanted to start up thin in dev mode on the staging box, purely because I'm having other redirect based issues when deployed there and I wanted to debug them :D . So I'm pretty interested in the solution to this.

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Rails development mode, no javascript runtime

13 Aug 2012, 05:50

Hello!

When you start Rails with Thin from the command prompt you are doing it with your user account credentials, that is why JavaScript engine is available for the process. When you start Rails with Zoo on IIS you are doing it with the IIS Application Pool user that is set up for your application. Probably this user does not have permissions to run Javascript in your system? Maybe you have installed Javascript for a single user or it could be NTFS or Security Policy limitations. There could be hundred of reasons actually and it is hard to tell remotely. Try starting from investigating Application Pool user and IIS_WPG permissions.

User avatar
Posts: 18
Joined: 30 May 2012, 23:43

Re: Rails development mode, no javascript runtime

14 Aug 2012, 01:38

Thats a good jumping off point. It was running under network service.

Though I set the application pool to use my logon credentials. Then restarted it. Same error :S

For the unenlightened, is there anything special I would need to do to let network service use windows inbuilt javascript engine?

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

Re: Rails development mode, no javascript runtime

23 Aug 2012, 04:58

Hello,

To be able to reproduce the issue you encounter we would like you to send us your application (zipped) to [email protected] and specify the request to make in order to see the issue.

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 5 guests