ports/devel/rubygem-execjs/files/patch-lib_execjs_runtimes.rb
Brad Davis 1219ade457 Handle nodejs not being found in the path.
This fixes running ruby on rails under nginx and passenger.

Approved by:	swills (mentor, ruby)
2016-04-27 15:22:31 +00:00

11 lines
388 B
Ruby

--- lib/execjs/runtimes.rb.orig 2016-04-25 16:51:44 UTC
+++ lib/execjs/runtimes.rb
@@ -17,7 +17,7 @@ module ExecJS
Node = ExternalRuntime.new(
name: "Node.js (V8)",
- command: ["nodejs", "node"],
+ command: ["nodejs", "node", "%%LOCALBASE%%/bin/node"],
runner_path: ExecJS.root + "/support/node_runner.js",
encoding: 'UTF-8'
)