go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

Adding heating and restart function in monomer applications

Open abnereel opened this issue 2 years ago • 2 comments
trafficstars

Using go zero to develop individual applications, I found that the development efficiency is quite high. Currently, when deployed on the server, I found that it is not possible to gracefully restart. Upon checking the source code, I found that it can be gracefully shut down, but it cannot be gracefully restarted.

After compiling the go zero monolithic application, execute the command nohup The application program is running on the server. After the configuration is modified, it is hoped that the kill command can achieve the effect of hot restarting the application and reloading the configuration.

I have tried to execute the following command, but I still feel that there are some issues. I hope the official can increase the low-level support: kill processID && nohup ./application &

abnereel avatar Jun 13 '23 09:06 abnereel

Thanks for your issue! But I think supervisord might be your choice.

kevwan avatar Jun 13 '23 23:06 kevwan

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 13 '24 01:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Sep 13 '24 02:09 github-actions[bot]