1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

guard-shotgun で.rbファイルを更新しても再起動していないように見える時の対処

Posted at

現象

  • shotgun 単体起動の時はブラウザリロードするとrubyコード更新が反映される。
  • guard-shotgun 使用時に rubyコードを更新しても反映されていないように見える。

原因

  • appフォルダの他に helpersフォルダなど作成してその中のrubyコードが反映されていなかった。
  • 設定漏れだった(以下の設定)

guard :shotgun do
  watch(%r{(helpers)/.+\.rb$})
end

環境

$ bundle list
  * guard (2.13.0)
  * guard-livereload (2.5.1)
  * guard-shotgun (0.4.0)
  * sinatra (1.4.6)
  * sinatra-contrib (1.4.0)
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?