LoginSignup
8
8

More than 5 years have passed since last update.

Capistranoでデプロイ完了したらGrowlで通知する

Last updated at Posted at 2012-06-20

まず http://d.hatena.ne.jp/tetsuyai/20110917/1316234149 あたりを参考に growlnotify を入れます。

after "deploy:restart" do
  system("which -s growlnotify && growlnotify -n 'Capistrano' -t 'Capistrano' -m 'デプロイ完了しました。'")
end

which -s でのコマンドの存在チェックと、 -n でアプリケーション名を設定しているところがポイントですかね。

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8