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 1 year ago • 2 comments

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