We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c46818 commit 95d9d12Copy full SHA for 95d9d12
README.md
@@ -19,6 +19,23 @@ best runtime available on the system.
19
Use the application environment (application key: `:execjs`, key: `:runtime`)
20
to set the runtime `Execjs` uses. Alternatively, the `EXECJS_RUNTIME`
21
environment variable can also be used to set the runtime.
22
+### Additional Runtimes
23
+
24
+It is possible to define a custom runtime to specify an exact path
25
+to your runtime command:
26
27
+```elixir
28
+defmodule ServeElmWeb.Runtime do
29
+ import Execjs.Runtime
30
31
+ defruntime Node8,
32
+ command: "/Users/o_o/.nvm/versions/node/v8.9.3/bin/node",
33
+ runner: "node_runner.js.eex"
34
+end
35
36
+```
37
38
39
40
## Usage
41
0 commit comments