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)>
아이디어가 있으십니까?