Rails development mode, no javascript runtime
4 posts
• Page 1 of 1
Rails development mode, no javascript runtime
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 . So I'm pretty interested in the solution to this.
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 . So I'm pretty interested in the solution to this.
Re: Rails development mode, no javascript runtime
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.
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.
Re: Rails development mode, no javascript runtime
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?
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?
Re: Rails development mode, no javascript runtime
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.
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.
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests