2014-06-18 6 views
0

guard-livereload gem을 사용하여 PHP 프로젝트의 변경 사항을 모니터링하고 있습니다. 나는 그것이 동일하게 작동하지만, 브라우저가 페이지를 다시로드하지 않는 guard을 실행하면guard-livereload가 브라우저를 다시로드하지 않습니다.

#setup the Gemfile 
$ nano Gemfile 
source 'https://rubygems.org' 
group :development do 
    gem 'guard' 
    gem 'guard-livereload', require: false 
end 

$ bundle 

#config the Guardfile 
$ nano Guardfile 
guard :livereload do 
    watch(%r{.+\.(css|js|html|php|tpl)$}) 
end 

: 이것은 내 가드 설정을 설명하는 gist이다.

$ bundle exec guard 
18:37:36 - INFO - Guard is using NotifySend to send notifications. 
18:37:36 - INFO - Guard is using TerminalTitle to send notifications. 
18:37:36 - INFO - LiveReload is waiting for a browser to connect. 
18:37:36 - INFO - Guard is now watching at '/var/www/html/se/se/application/modules/Tmp' 
[1] guard(main)> 18:37:43 - INFO - Browser connected. 
18:37:54 - INFO - Reloading browser: views/scripts/tmp/index.tpl 
18:38:02 - INFO - Reloading browser: views/scripts/tmp/index.tpl 
18:38:12 - INFO - Reloading browser: views/scripts/tmp/index.tpl 
18:38:23 - INFO - Reloading browser: views/scripts/tmp/index.tpl 
[1] guard(main)> 

아이디어가 있으십니까?

답변

2

새로 고침이 제대로 실행 된 것 같습니다. 문제는 브라우저 측에있을 가능성이 큽니다. 당신은

  • 이 아이콘을 클릭하여 라이브 새로 고침을 활성화 브라우저에서 앱에 쉘
  • 이동에

    Live Reload Icon