Hey there,
how do I deploy code changes to a fly machine?
When using v1 apps I just run fly deploy --remote-only
, but with machines I get this warning: This feature is highly experimental and may produce unexpected results. Proceed?
.
What is the correct way to deploy new changes with machines?
Thanks in advance!
1 Like
Hey Phil,
As I understand a machine application should be updated this way:
fly m update <machine-id> -a <app-name> -p <internal_port:service_port> --dockerfile ./Dockerfile
You can get the machine Id by:
fly m list -a <app-name>
Here are the links that could help:
Update the Machine’s Docker Image. Fly.io Docs.
Fly Apps on machine prerelease. Fly.io Community.
1 Like
Ok I’m also doing it this way by providing the --dockerfile flag, I was wondering if this is the right way but apparently it is!
Thank you!
system
Closed
May 4, 2024, 12:29am
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.