petalframework / petal_boilerplate

Phoenix + Tailwind + Petal Components Boilerplate
https://petal.build
145 stars 19 forks source link

deply on fly.io fails #12

Open kimko opened 2 years ago

kimko commented 2 years ago

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

mplatts commented 2 years ago

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.

kimko commented 2 years ago

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

anzaika commented 2 years ago

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.

mplatts commented 2 years ago

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