petal_boilerplate icon indicating copy to clipboard operation
petal_boilerplate copied to clipboard

deply on fly.io fails

Open kimko opened this issue 2 years ago • 4 comments

I can't deploy a project I created with this template to fly.io. Another project I created with mix phx.new deploys just fine.

love the petal components. Please keep up the great work!

more details and cross-posting here: https://community.fly.io/t/elixir-deploy-fails-phonix-petal-boilerplate/6412

kimko avatar Aug 14 '22 21:08 kimko

Fly can be a bit temperamental ... many times I've just tried to deploy again and the error disappears. Though in saying that there could actually be a problem - but maybe try deploying at least 3 times over a period of an hour and if that doesn't work I'll dig into it.

mplatts avatar Aug 15 '22 20:08 mplatts

Hi! Thanks for the response. Yeah. I tried several times over several days before I started the thread that I shared above. Sombody responded in the community thread to day. The /rel folder was missing. I generated but the deploy still fails.

FYI: I can deploy a "generic" phoenix project just fine. IE

  1. mix phx.new fo
  2. cd fo
  3. fly launch

kimko avatar Aug 16 '22 05:08 kimko

I have been trying to deploy vanilla petal_boilerplate the whole day with no success.

Strangely nothing shows up in logs, and spinning up a mix release locally in an identical environment works just fine.

I will try to dig deeper over the coming days.

anzaika avatar Aug 30 '22 17:08 anzaika

I don't have time to do it right now, but if someone could:

  1. create a new project with phx.new and then git init it
  2. in finder select all the files in this boilerplate, copy them and then go to the folder of the new project and paste (overriding)
  3. look at the git changes for anything that might be spoiling the release - probably something in prod.exs or runtime.exs

mplatts avatar Aug 30 '22 23:08 mplatts