You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an error stating that execjs could not find a JavaScript runtime, as described in this stack question, when running rake db:migrate after my latest pull.
This might be due to a missing gem dependency. Installing node.js is what fixed it for me, installing execjs and therubyracer wasn't enough. And yes, I ran bundle install.
Interesting - not sure about this one. We use sinatra-assetpack which uses uglifier which uses execjs to pick a Javascript runtime. So having therubyracer installed should work. Could you provide anymore information about your environment?
Activity
Driim commentedon May 15, 2013
installing nodejs helps me
swanson commentedon May 16, 2013
Interesting - not sure about this one. We use
sinatra-assetpackwhich usesuglifierwhich usesexecjsto pick a Javascript runtime. So havingtherubyracerinstalled should work. Could you provide anymore information about your environment?If you can't get it working, you could always trying removing this line: https://github.com/swanson/stringer/blob/master/app.rb#L78 and just not having the javascript get compressed.
swanson commentedon May 17, 2013
I've swapped to using jsmin instead of uglifier for this - so you should not need a JS runtime anymore. Please let me know if you still have issues.
glindstedt commentedon May 17, 2013
Works great, thank you!