我在编译更新到我的.sass文件时遇到问题guard
和guard-sass
。我已经安装了它们,将guard-sass配置指向我的输入和输出目录,但每当我保存更改时,.css文件都没有更新。警卫/警卫没有编译更改
最初我以为这可能是一个权限的事情,但奇怪的是我已经设置:all_on_start => true
哪些词,所以我怀疑它可以是。
这里是我的GuardFile,因为它代表:
guard 'sass',
:input => 'assets/sass',
:output => 'static/css',
:all_on_start => true
我也试过(只是柜面避免长时间符号做了一个差异):
guard 'sass',
:all_on_start => true,
:output => 'static/css' do
watch %r{^assets/sass/(.+\.s[ac]ss)$}
end
这是当我开始与守卫调试(guard start -d
- 只是柜面调试秀我丢失的东西):
tavocado:data tavocado$ guard start -d
22:39:49 - DEBUG - Command execution: emacsclient --eval '1' 2> /dev/null || echo 'N/A'
22:39:49 - INFO - Guard uses TerminalTitle to send notifications.
22:39:49 - DEBUG - Command execution: hash stty
22:39:49 - DEBUG - Guard starts all plugins
22:39:49 - DEBUG - Hook :start_begin executed for Guard::Sass
22:39:49 - INFO - Sass [0.02s] base.sass -> base.css
22:39:49 - DEBUG - Hook :start_end executed for Guard::Sass
22:39:49 - INFO - Guard is now watching at '/data'
22:39:50 - DEBUG - Command execution: stty -g 2>/dev/null
22:39:50 - DEBUG - Start interactor
我在OS X 10.8.3上安装了默认的ruby安装(ruby 1.8.7,gem 1.3.6)。
我已经在它几个小时,我完全难倒,所以任何帮助将不胜感激。
所以这是阅读文档的一个小问题!不知道我错过了那一个。一直试图避免RVM,但我已经安装它和Ruby 2.0.0,并得到它的工作。谢谢你的帮助 :) – tavocado 2013-04-09 21:04:38