官术网_书友最值得收藏!

Live reloading the application with supervisord and Gulp

Gulp is a nice tool for creating workflows. A workflow is a step-by-step process. It is nothing but a task streamlining application. You need NPM and Node installed on your machine. We use Gulp to watch the files and then update the binary and restart the API server. Sounds cool, right?

The supervisor is an application to reload your server whenever the application gets killed. A process ID will be assigned to your server. To restart the app properly, we need to kill the existing instances and restart the application. We can write one such program in Go. But in order to not reinvent the wheel, we are using a popular program called supervisord.  

主站蜘蛛池模板: 贵州省| 庆阳市| 淮南市| 东乡| 山西省| 阿拉善盟| 内丘县| 广西| 宣威市| 保靖县| 凤城市| 东乡族自治县| 丹凤县| 台东县| 鹤壁市| 吴忠市| 贵阳市| 全椒县| 子洲县| 华蓥市| 康定县| 武宁县| 集安市| 汉寿县| 桂东县| 武义县| 兴文县| 五原县| 乐亭县| 张掖市| 搜索| 连南| 五常市| 广安市| 绥宁县| 八宿县| 奉节县| 平塘县| 金昌市| 嘉兴市| 手机|