#Fresh Basic Remix app fail to deploy to fly.io (Remix: not found)

1 messages · Page 1 of 1 (latest)

near fern
#

Hey there,

Just got into experimenting with Remix and ran into a bit of a snag. I've been trying to deploy a new create-remix app on Fly.io, but keep running into some issues. My setup is pretty bare-bones with no code changes beyond what included in a fresh basic remix app, and I've attached a screenshot of my project configs for reference.

When I try to run the deploy command on Fly.io, it's throwing me an error that says remix: not found. I've also attached the full log below to give you a better idea.

I saw a suggestion that said shifting @remix-run/dev from devDependencies to dependencies might help, but I'm a bit hesitant to try without knowing if it might cause other issues.

Any advice or insights would be really appreciated. Thanks in advance!

modern pine
#

This is my dockerfile, and if you follow the highlighted lines

  • In FROM base as deps I first install including the dev dependencies into the base layer
  • In FROM base as production-deps I prune them so it's only prod deps again
  • In FROM base as build I copy node modules from deps, which includes the dev ones, before running build
#

I suspect the issue you're getting is just a bug in the template for pnpm which doesn't account for this

near fern
#

Thanks @modern pine for the quick reply. So it looks like moving @remix-run/dev to dependencies, did indeed fixed the initial error, but it might introduced another error. The error message suggested throwing in a --no-frozen-lockfile flag which sorted out the deployment, but it's got me thinking. As apps scale and pile on more dependencies, wouldn't there be a risk of random bugs popping up between deployments? 🤔

On top of that, I had to tinker around with the PORT settings to get the app to deploy correctly.

Since I really haven't changed a thing from what is produced by create-remix@latest, I'm starting to wonder if there might be some bugs nestled in there. Do you think this is the right place to discuss these potential issues?

Cheers!

modern pine
#

The more dependencies you have, the more points of failure there are, that is correct

#

The frozen lockfile sounds like it just didn't update to recognize remix dev was moved to devDependencies, not a bug but it may require a manual update. I don't know too much about pnpm to be sure why it didn't do that automatically

#

I would wager these issues are more a result of there being many many possible permutations of the different options you can select when you set up a Remix app, and with such a small team working on Remix, not all paths are smooth

#

But they're all solvable