Hey how do I port-forward a service while in sync...
# 🤖|ask-kapa
m
Please stand by @chilly-gigabyte-83853 as I search the knowledge base. I normally take about 20 seconds or so. :wave:
---------------------- To port-forward a service while in sync mode with Garden, you can use the
garden deploy --sync
command. This command deploys your services with sync enabled, which means any changes you make that fall under one of the sync specs you've defined will be automatically synced between your local machine and the running service. Here's how you can use it:
Copy code
bash
garden deploy --sync myservice
In the command above, replace
myservice
with the name of your service. If you want to deploy multiple services in sync mode, you can separate them with a comma:
Copy code
bash
garden deploy --sync myservice,my-other-service
If you want to deploy all applicable services with sync enabled, you can use the following command:
Copy code
bash
garden deploy --sync=*
Once your deploys are ready, any changes you make will be automatically synced. Once you quit/terminate the Garden command, the deploys and syncs will keep running in the background. To stop the syncs you can use the
sync stop
command. For more information, you can refer to the Garden documentation on code synchronization (). ----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon: ----------------------
5 Views