Is there any step by step tutorials or example on ...
# random
m
Is there any step by step tutorials or example on how to set up an agent to run a flow on a windows laptop with a local git repository? I've read through the docs but I can't find a full example and googling isn't helping much.
k
Hey @Maximilian Rausch, are you running into any specific error? Is the problem the agent or the git repo?
m
I haven't tried the repo storage yet only local so I don't have any errors. I just think the docs and API descriptions are not that clear and there's not extensive code samples so will probably have to figure it with trial and error.
k
The local repo part is hard because Git storage needs a host. Do you mean you host your repo somewhere? or the repo only exists on a local machine?
m
It's backed by BitBucket but it's not clear to me if you can use a local repo the same Way you use the local file system. It allows another layer of control.
From my understanding only the latest commit will run
k
I dont think you can use a local repo with Git storage because that storage works my cloning the repo from the host. I would just use
Local
storage and point to the file containing the Flow.
m
I guess I'm not understanding what Git storage does. Why can't you point it towards a local repo the same way you point it towards a directory with local mode. Is prefect using git for something else besides the code ?
k
It gets the Flow by cloning the repo and clones from the URL. I’m not seeing how you would point this to a local git repo (and why even clone right?)
By local you mean it’s not on a server right? It’s on the same machine? Or do you just mean self-hosted on a server?
m
You can clone from a local repo
I thought maybe it was just reading the data instead of cloning though