Question about deploying project with Supervisor

Hello,

I have a question about using Supervisor:

When I re-deploy my projects, will this automatically restart Supervisor?

I’m not sure if I need to do anything extra to make sure Supervisor pick up on the changes.

Thank you!
/chris

Hello @webify,

If there is a way to terminate the process running in Process Monitor, it will indeed be restarted. You can include a custom hook with the termination command and place it at the end of the deployment hooks.

Could you please provide more details about what you are trying to execute using Process Monitor?

@anish i use supervisor to spin up workers ( redis / php ) which send http requests to my api endpoint. All working. All good. My question is if i re-deploy with new code. Will the supervisor restart with the deployment?

Hello @webify,

The process managed by Supervisor will automatically restart if it is terminated or stopped.

You can add a custom deployment hook to stop or restart the process, which will subsequently trigger its restart under Supervisor.