Execute GPIO functions on the production server.

This commit is contained in:
Pim Kunis 2019-08-24 16:51:43 +02:00
parent fc54fa1761
commit 66291ac548
4 changed files with 33 additions and 23 deletions

View file

@ -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

View file

@ -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]
]