adam

adam

Deploying to Heroku

I’ve followed all of the documentation I can find regarding deploying to Heroku but am failing with a Mix.Config.LoadError

Relevant output from git push heroku master

remote: -----> Fetching app dependencies with mix
remote: ** (Mix.Config.LoadError) could not load config config/prod.secret.exs
remote:     ** (File.Error) could not read file             
"/tmp/build_d088e34b7a47fecac9bbe69a031fa7e5/config/prod.secret.exs": no such file or 
directory
remote:     (elixir) lib/file.ex:272: File.read!/1
remote:     (mix) lib/mix/config.ex:180: Mix.Config.read!/2
remote:     (mix) lib/mix/config.ex:217: anonymous fn/3 in Mix.Config.read_wildcard!/2
remote:     (elixir) lib/enum.ex:1811: Enum."-reduce/3-lists^foldl/2-0-"/3
remote:     (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
remote:     (stdlib) erl_eval.erl:878: :erl_eval.expr_list/6
remote:     (stdlib) erl_eval.erl:404: :erl_eval.expr/5
remote:  !     Push rejected, failed to compile Elixir app.
remote: 
remote:  !     Push failed

So, it appears to be failing when it fails to find prod.secret.exs, however, as per the docs this file is no longer in use, doesn’t get imported anywhere and doesn’t exist in the repo any longer.

Not sure why I’m having this issue, any help would be greatly appreciated.

Thanks

Most Liked

outlog

outlog

check for and remove this line
import_config "prod.secret.exs"

in config/prod.exs

adam

adam

Indeed. I’m a few commits ahead.

I’m going to start afresh in the morning. It’s been a long day.

Thanks for the assistance.

adam

adam

That line no longer exists. It was taken out before the first deployment attempt following the instructions in Deploying on Heroku — Phoenix v1.8.8

This is why I’m so confused.

Where Next?

Popular in Questions Top

siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
vac
Hi, I’m quite new in Elixir and I’m trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and I...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
marick
I had some trouble figuring out how to make many-to-many associations work. Once I got it working, I wrote a blog post. Because I’m a nov...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
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
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
marick
I had some trouble figuring out how to make many-to-many associations work. Once I got it working, I wrote a blog post. Because I’m a nov...
New

We're in Beta

About us Mission Statement