mrkurt

mrkurt

Phoenix app uses a different erlang distribution cookie between deploys

Hello! I have a basic Phoenix app with a SECRET_KEY_BASE set. I’m deploying this as a fleet of containers, and would like to be able to add/remove containers without redeploying the whole sheban.

It seems like the erlang distribution cookie changes if I deploy, then deploy again a few hours later. Is this expected, or have I configured my app wrong? Assuming it’s supposed to be doing that, can I give it a more permanent cookie with an environment variable?

Marked As Solved

vrcca

vrcca

You can set RELEASE_COOKIE environment variable to keep it between deployments.

Also Liked

mrkurt

mrkurt

Oh nice, thanks. Would you believe I looked for that and couldn’t find it? :smiley:

Last Post!

mrkurt

mrkurt

Oh nice, thanks. Would you believe I looked for that and couldn’t find it? :smiley:

Where Next?

Popular in Questions Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New

Other popular topics Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 49084 226
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement