Skip to content

Commit

Permalink
Lets see it
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileoverlord committed Jul 9, 2019
1 parent 274e093 commit ace2131
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 2 deletions.
15 changes: 15 additions & 0 deletions apps/nerves_hub_api/config/release.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
import Config

sync_nodes_optional =
case System.fetch_env("SYNC_NODES_OPTIONAL") do
{:ok, sync_nodes_optional} ->
{sync_nodes_optional, _} = Code.eval_string(sync_nodes_optional)

:error ->
[]
end

config :kernel,
sync_nodes_optional: sync_nodes_optional,
sync_nodes_timeout: 5000,
inet_dist_listen_min: 9100,
inet_dist_listen_max: 9155

config :rollbax, access_token: System.fetch_env!("ROLLBAR_ACCESS_TOKEN")

config :nerves_hub_web_core, NervesHubWebCore.Firmwares.Upload.S3,
Expand Down
15 changes: 15 additions & 0 deletions apps/nerves_hub_device/config/release.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
import Config

sync_nodes_optional =
case System.fetch_env("SYNC_NODES_OPTIONAL") do
{:ok, sync_nodes_optional} ->
{sync_nodes_optional, _} = Code.eval_string(sync_nodes_optional)

:error ->
[]
end

config :kernel,
sync_nodes_optional: sync_nodes_optional,
sync_nodes_timeout: 5000,
inet_dist_listen_min: 9100,
inet_dist_listen_max: 9155

config :rollbax, access_token: System.fetch_env!("ROLLBAR_ACCESS_TOKEN")

config :nerves_hub_web_core, NervesHubWebCore.Firmwares.Upload.S3,
Expand Down
15 changes: 15 additions & 0 deletions apps/nerves_hub_www/config/release.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
import Config

sync_nodes_optional =
case System.fetch_env("SYNC_NODES_OPTIONAL") do
{:ok, sync_nodes_optional} ->
{sync_nodes_optional, _} = Code.eval_string(sync_nodes_optional)

:error ->
[]
end

config :kernel,
sync_nodes_optional: sync_nodes_optional,
sync_nodes_timeout: 5000,
inet_dist_listen_min: 9100,
inet_dist_listen_max: 9155

config :rollbax, access_token: System.fetch_env!("ROLLBAR_ACCESS_TOKEN")

config :nerves_hub_web_core, NervesHubWebCore.Firmwares.Upload.S3,
Expand Down
1 change: 0 additions & 1 deletion rel/env.sh.eex
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@
export RELEASE_COOKIE=${ERL_COOKIE}
export RELEASE_DISTRIBUTION=name
export RELEASE_NODE=<%= @release.name %>@${LOCAL_IPV4}
export ELIXIR_ERL_OPTIONS="-kernel inet_dist_listen_min 9100 inet_dist_listen_max 9155 sync_nodes_timeout 5000 sync_nodes_optional '${SYNC_NODES_OPTIONAL}'"
2 changes: 1 addition & 1 deletion rel/scripts/ecs-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ service_ip_addresses() {
}

format_nodes() {
for IP in $1; do echo "'$2@$IP'"; done
for IP in $1; do echo ":\"$2@$IP\""; done
}

METADATA=`curl http://169.254.170.2/v2/metadata`
Expand Down

0 comments on commit ace2131

Please sign in to comment.