<@ULVA73B9P> what is the correct way to have your ...
# marvin-ai
t
@Marvin what is the correct way to have your code build and deploy when running a local prefect server and worker? I have prefect.local.yaml setup this way but the workers don't seem to pull the code correctly when I run "uv run prefect deploy src/flows/webhooks/logging/log_payload.py:webhook__logging__log_payload --name webhook__logging__log_payload --pool local-pool" name: data-bifrost-local prefect-version: 3.3.7 # Local testing configuration - optimized for development and debugging definitions: work_pools: local: &local name: local-pool work_queue_name: default build: [] push: [] pull: [] deployments:
m
Error: No module named 'prefect.projects'
Error: No module named 'prefect.projects'
t
You still there?
b
Hey @Tim Ritzema, here's an example of how to do this:
Copy code
pull:
- prefect.deployments.steps.set_working_directory:
    directory: /my_directory

deployments:
- name: local-process-deploy-local-code
  entrypoint: local_process_deploy_local_code.py:my_flow
  work_pool:
    name: my-process-pool
(click on the
prefect.yaml
tab here) https://docs.prefect.io/v3/how-to-guides/deployments/store-flow-code#store-code-locally