Commit 4548e756 authored by Mikko Ahlroth's avatar Mikko Ahlroth

Allow setting nodename for release with env var

Should hopefully fix beta autodeploy
parent 35972c33
Pipeline #24987223 (#123) passed with stages
in 5 minutes and 26 seconds
......@@ -46,6 +46,7 @@ deploy_beta:
variables:
MIX_ENV: prod
COOKIE: thisisbeta
NODENAME: code_stats_beta
only:
- master@code-stats/code-stats
tags:
......
......@@ -38,6 +38,7 @@ environment :prod do
set(include_src: false)
set(cookie: System.get_env("COOKIE") |> String.to_atom())
set(vm_args: "rel/vm.args.eex")
plugin(CodeStats.ReleasePlugins.BuildStatics)
end
......
## Name of the node
-name <%= System.get_env("NODENAME") || "code_stats" %>@127.0.0.1
## Cookie for distributed erlang
-setcookie <%= System.get_env("COOKIE") || raise "Cookie missing!" %>
## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
## (Disabled by default..use with caution!)
##-heart
## Enable kernel poll and a few async threads
##+K true
##+A 5
## Increase number of concurrent ports/sockets
##-env ERL_MAX_PORTS 4096
## Tweak GC to run more often
##-env ERL_FULLSWEEP_AFTER 10
# Enable SMP automatically based on availability
-smp auto
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment