diff --git a/umbrel-dev b/umbrel-dev index 3600816..80c418e 100755 --- a/umbrel-dev +++ b/umbrel-dev @@ -17,6 +17,7 @@ Commands: destroy Destroy the development VM containers List container services rebuild Rebuild a container service + reload Reloads the Umbrel service logs Stream Umbrel logs run Run a command inside the development VM ssh Get an SSH session inside the development VM @@ -179,6 +180,18 @@ if [[ "$command" = "rebuild" ]]; then exit fi +# Rebuild a container service +if [[ "$command" = "reload" ]]; then + check_umbrel_dev_environment + echo "Reloading the Umbrel service..." + echo + run_in_vm " \ + sudo scripts/stop \ + && sudo scripts/configure \ + && sudo scripts/start" + exit +fi + # Stream Umbrel logs if [[ "$command" = "logs" ]]; then check_umbrel_dev_environment