Hi there,
I am stoked to try fly.io, yet have been failing with Phoenix speedrun. Sorry for noob question, but no luck in getting it running
- I am on Elixir 1.13.3, Phoenix 1.6.6, flyctl v0.0.313
- I am creating a barebones Phoenix app as described here Deploy an Elixir Phoenix Application and it runs locally on my machine just fine
- On the first run of
flyctl launch
and selecting the PG, I get an error - something likecan't access https://api.fly.io/graphql: unexpected EOF
- I tried running
flyctl launch
again and then I always get
ERROR! Config provider Config.Reader failed with:
** (RuntimeError) environment variable DATABASE_URL is missing.
For example: ecto://USER:PASS@HOST/DATABASE
(stdlib 3.17.1) erl_eval.erl:685: :erl_eval.do_apply/6
(elixir 1.13.3) src/elixir.erl:296: :elixir.recur_eval/3
(elixir 1.13.3) src/elixir.erl:274: :elixir.eval_forms/3
(elixir 1.13.3) lib/config.ex:260: Config.__eval__!/3
(elixir 1.13.3) lib/config/reader.ex:92: Config.Reader.read!/2
{"init terminating in do_boot",{#{'__exception__'=>true,'__struct__'=>'Elixir.RuntimeError',message=><<101,110,118,105,114,111,110,109,101,110,116,32,118,97,114,105,97,98,108,101,32,68,65,84,65,66,65,83,69,95,85,82,76,32,105,115,32,109,105,115,115,105,110,103,46,10,70,111,114,32,101,120,97,109,112,108,101,58,32,101,99,116,111,58,47,47,85,83,69,82,58,80,65,83,83,64,72,79,83,84,47,68,65,84,65,66,65,83,69,10>>},[{erl_eval,do_apply,6,[{file,"erl_eval.erl"},{line,685},{error_info,#{module=>'Elixir.Exception'}}]},{erl_eval,expr,5,[{file,"erl_eval.erl"},{line,446}]},{erl_eval,exprs,5,[{file,"erl_eval.erl"},{line,123}]},{elixir,recur_eval,3,[{file,"src/elixir.erl"},{line,296}]},{elixir,eval_forms,3,[{file,"src/elixir.erl"},{line,274}]},{'Elixir.Code',validated_eval_string,3,[{file,"lib/code.ex"},{line,404}]},{'Elixir.Config','__eval__!',3,[{file,"lib/config.ex"},{line,260}]},{'Elixir.Config.Reader','read!',2,[{file,"lib/config/reader.ex"},{line,92}]}]}}
- Not sure if that’s helpful, but I have notices that after the first error my apps’s name
hello-elixir-fresh
is not being showed anymore in Sign In · Fly and I only see some builderfly-builder-wild-pine-194
.
Any help? Thanks a lot in advance!