As @rubys mentioned in #232 (comment) & #232 (comment), we should be able to get rid of .dockerignore, Dockerfile, fly.toml & start.sh in favor of using fly launch/dockerfile-node:
Any chance remix could consider switching to dockerfile node?
I believe we can support everything. If we discover something that needs to be added that can be done quickly, so I'm not worried about that.
This would mean that we also need to update our README to not include the now obsolete steps
The doc changes should be pretty straightforward. Much of the current README can be replaced by fly launch.
We will also need to update our deploy workflow so that it runs fly launch/dockerfile-node each time in the deploy step
We can probably use https://github.com/fly-apps/dockerfile-node/actions/runs/5933428308/job/16088842745 as an inspiration for that
If looks like your existing test deploys the app on fly.io. It doesn't create the application, so it presumes that the app is already present?
So the next step is presumably to figure out what test is needed, subtract out what is already covered, and then write a test for what remains. Whether that test or tests resides in a remix repository or a fly apps repository doesn't matter to me.
The vitest step doesn't need Fly at all, but in the deploy step we indeed need Fly.
There are indeed 2 existing applications named indie-stack-template & indie-stack-template-staging which are deploying latest code changes (indie-stack-template deploys main branch, indie-stack-template-staging deploys dev branch, which actually doesn't exist in this project but is there for convenience when using this stack)
If I'm correct @kentcdodds set these up when creating these, so I'm not sure under which account they're available if more info is needed about them
The idea of the deploy workflow is indeed that the applications are already set up on Fly and that you're just pushing new code, not that you create a new app every time you update your existing codebase
Reference: https://github.com/fly-apps/dockerfile-node