我在編譯更新到我的.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