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!
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.
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!