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 ac17655
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
8 changes: 8 additions & 0 deletions apps/nerves_hub_api/config/release.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import Config

{sync_nodes_optional, _} = Code.eval_string(System.fetch_env!("SYNC_NODES_OPTIONAL"))

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
6 changes: 6 additions & 0 deletions apps/nerves_hub_device/config/release.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import Config

config :kernel,
sync_nodes_optional: System.fetch_env!("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
8 changes: 8 additions & 0 deletions apps/nerves_hub_www/config/release.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import Config

{sync_nodes_optional, _} = Code.eval_string(System.fetch_env!("SYNC_NODES_OPTIONAL"))

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 ac17655

Please sign in to comment.