Peacemaker.HandlebarsService (Peacemaker v3.3.5-rc.7) View Source
A GenServer implementation that starts a Node.js server process using Elixir ports.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Port spawns executable to run node server process via wrapper shell script.
An enoent error means FileName specified in {spawn_executable, FileName}
does not point out an existing file.
Docs for Port here: https://hexdocs.pm/elixir/Port.html
Docs for open_port options here: http://erlang.org/doc/man/erlang.html#open_port-2
Called when application started via application.ex.
Close port when the genserver is about to exit.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Port spawns executable to run node server process via wrapper shell script.
An enoent error means FileName specified in {spawn_executable, FileName}
does not point out an existing file.
Docs for Port here: https://hexdocs.pm/elixir/Port.html
Docs for open_port options here: http://erlang.org/doc/man/erlang.html#open_port-2
Called when application started via application.ex.
Close port when the genserver is about to exit.