Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.08 KB

File metadata and controls

41 lines (32 loc) · 1.08 KB

Restart Specific Overmind Process

I have been in the bad habit of fully killing and re-running the entire overmind process for a project whenever I have a new JavaScript file that I need vite to pick up and bundle. vite is only one of three processes, so I'm restarting two processes unnecessarily.

❯ overmind status
PROCESS   PID       STATUS
web       50897     running
vite      50898     running
worker    50899     running

Instead, what I can do is specifically target the vite process for a restart.

❯ overmind restart vite

This will restart that specific process, ensuring that the new JS files get picked up and bundled.

I can clearly see that only vite was restarted by looking at the status subcommand again.

❯ overmind status
PROCESS   PID       STATUS
web       50897     running
vite      84163     running
worker    50899     running

Notice the web and worker processes still have the same PIDs, but vite has a new much higher PID.

See overmind restart --help for more details.