DEV Community

Discussion on: Deploying an Elixir Release using Docker on Fly.io

Collapse
 
idcmardelplata profile image
Martin Algañaraz

I have followed all the steps and several guides but it always throws me the same error "** (RuntimeError) FLY_APP_NAME not avaiable" I am trying to deploy an umbrella application so I have configured some things differently but I suppose it should not exist problems with the FLY_APP_NAME environment variable since from what I've read it is automatically generated by fly. Could you guide me on what may be happening? Thank you very much in advance

Collapse
 
miguelcoba profile image
Miguel Cobá

Hi, Martín. I have not used umbrellas so no idea if something different must be done. There are two things that I think you can try:

  • fly secrets list, to see if the FLY_APP_NAME exists
  • set the env var locally (export FLY_APP_NAME=something) and then start the umbrella locally in prod mode and see if the same error happens
  • check if you need to set the REPLACE_OS_VARS (cultivatehq.com/posts/elixir-disti...)

Hope that helps!

Collapse
 
brainlid profile image
Mark Ericksen

Hey Martin!

Yes, umbrella projects work on Fly. I like to build projects that way myself. I'd suggest directing questions to community.fly.io/. Perhaps there you could share more context about your setup and the error message?

Collapse
 
miguelcoba profile image
Miguel Cobá

Thanks, Mark! Good to know!