Execute GPIO functions on the production server.
This commit is contained in:
parent
fc54fa1761
commit
66291ac548
4 changed files with 33 additions and 23 deletions
|
@ -21,11 +21,10 @@ defmodule Firmware.Application do
|
|||
|
||||
# List all child processes to be supervised
|
||||
def children(:host) do
|
||||
[
|
||||
# Children that only run on the host
|
||||
# Starts a worker by calling: Firmware.Worker.start_link(arg)
|
||||
# {Firmware.Worker, arg},
|
||||
]
|
||||
{:ok, _} = Node.start(:"host@0.0.0.0")
|
||||
Node.set_cookie(:testcookie)
|
||||
true = Node.connect(:"esrom@nerves.local")
|
||||
[]
|
||||
end
|
||||
|
||||
def children(_target) do
|
||||
|
|
|
@ -63,7 +63,7 @@ defmodule Firmware.MixProject do
|
|||
def release do
|
||||
[
|
||||
overwrite: true,
|
||||
cookie: "#{@app}_cookie",
|
||||
cookie: "testcookie",
|
||||
include_erts: &Nerves.Release.erts/0,
|
||||
steps: [&Nerves.Release.init/1, :assemble]
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue