I get ActionView::Template::Error (Connection refused - "/tmp/execjs-fastnode-20221108-1531-1rvfa3b/socket"): in Rails production log after about 30 hits to the site. I'm using this gem not just to compile assets during deployment, but actually calling a JavaScript function repeatedly on the fly. I do like CONTEXT = ExecJS.compile(source) once at boot, and then repeatedly do CONTEXT.call('someFunction', some_arg) whenever someone hits the site. I'm using Ruby 2.0.0-p648, Rails 3.2.22, Phusion Passenger 4.0.60, on FreeBSD 11.4 with Node 16.6.2. I get no issues in development mode on Debian 9 with Node 14.20.1, nor do I get any issues with just the execjs gem.
I get
ActionView::Template::Error (Connection refused - "/tmp/execjs-fastnode-20221108-1531-1rvfa3b/socket"):
in Rails production log after about 30 hits to the site. I'm using this gem not just to compile assets during deployment, but actually calling a JavaScript function repeatedly on the fly. I do likeCONTEXT = ExecJS.compile(source)
once at boot, and then repeatedly doCONTEXT.call('someFunction', some_arg)
whenever someone hits the site. I'm usingRuby 2.0.0-p648, Rails 3.2.22, Phusion Passenger 4.0.60, on FreeBSD 11.4 with Node 16.6.2
. I get no issues in development mode onDebian 9 with Node 14.20.1
, nor do I get any issues with just theexecjs
gem.