Drkcore

27 03 2013 Python Flask Tweet

git pullしたらSupervisor+Gunicornをrestartする設定

gitでpullしたらgunicorn restartできないかなと思って調べた。

supervisorctl status gunicorn | sed "s/.*[pid ]\([0-9]\+\)\,.*/\1/" | xargs kill -HUP

でrestartできるので、これを.git/hooks/post-mergeに書いておけばいいうようだ。

(あとでやる)

  • A better way to restart/reload Gunicorn (via Upstart) after 'git pull'ing my Django projects
  • Is there any git hook for pull?
  • Supervisor
  • Gunicorn

About

  • もう5年目(wishlistありマス♡)
  • 最近はPythonとDeepLearning
  • 日本酒自粛中
  • ドラムンベースからミニマルまで
  • ポケモンGOゆるめ

Tag

Python Deep Learning javascript chemoinformatics Emacs sake and more...

Ad

© kzfm 2003-2021