Where does the code come from when I type 'fly deploy'

I don’t believe I’ve connected github, so does that mean it’s coming from my local machine?

How does it know which branch to choose, or is it just choosing code written to my local files?

Yep, exactly. It’ll work with the files in the directory you run the CLI from.

Is there anyway to let it pull from github on a specified branch?

Generally that’s done in a Continuous integration pipeline (e.g. github actions), where you run “fly deploy” after the ci runs a build against a specific commit. you can control what branches (etc) get built/deployed within the CI app (rather than that being a function of the fly command).

1 Like