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

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.  

主站蜘蛛池模板: 铜陵市| 巴马| 合阳县| 丰都县| 伽师县| 中西区| 锡林浩特市| 博客| 盈江县| 隆尧县| 若尔盖县| 河津市| 斗六市| 兴山县| 乌苏市| 泽库县| 梁山县| 桦甸市| 阜宁县| 北安市| 福安市| 陆丰市| 蒙城县| 麻城市| 界首市| 乳山市| 凉城县| 稻城县| 鄂托克前旗| 藁城市| 宽城| 惠东县| 乌鲁木齐市| 拉萨市| 平安县| 时尚| 乌兰浩特市| 象山县| 崇仁县| 南京市| 中西区|