-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use fly launch
/dockerfile-node
instead of .dockerignore
, Dockerfile
, fly.toml
& start.sh
#252
Comments
The apps are under the Remix fly account. I have no issues with any changes to this stack so long as it works and is as simple or simpler |
@kentcdodds The purpose of @rubys' suggestion is to have less files in the stack/project and let |
I would suggest putting this in In any case, the answer is yes:
|
@rubys I would suggest to support this in a generic way, like the extra dependencies that can be installed for certain stages of |
omg 🤦 I can't believe I didn't think of this... This definitely would be a much easier way to do this for my use case.
I agree with this, I was mainly giving my use-case only an example, and I'm sure there's other things people may want to do just before or after a build. Maybe you could provide a way to hook into the process at certain points, e.g. before_build, after_build, after_deploy where uses can execute code. I don't know anything about ejs, but seeing as it's just JS, maybe you can make it possible to just provide a function which accepts parameters like buildFiles, context, buildArgs? |
Good news. Take a look at the current set of options: https://github.com/fly-apps/dockerfile-node#options
Can you describe what you mean by |
Ah amazing :) yeah I think that was exactly what I was envisioning, sorry next time I'll do a deeper dive into the documentation :) Don't worry about those parameters as they are likely irrelevant with your current way of doing things :) |
In case this doesn't go ahead for whatever reason, there's some other updates required for the fly.toml. As far as is documented, To replace [deploy]
strategy = "bluegreen" https://fly.io/docs/reference/configuration/#picking-a-deployment-strategy |
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 usingfly launch
/dockerfile-node
:This would mean that we also need to update our README to not include the now obsolete steps
We will also need to update our
deploy
workflow so that it runsfly launch
/dockerfile-node
each time in thedeploy
stepWe can probably use https://github.com/fly-apps/dockerfile-node/actions/runs/5933428308/job/16088842745 as an inspiration for that
The
vitest
step doesn't need Fly at all, but in thedeploy
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
deploysmain
branch,indie-stack-template-staging
deploysdev
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 codebaseReference: https://github.com/fly-apps/dockerfile-node
The text was updated successfully, but these errors were encountered: