2013-03-12 201 views
0

我在指南針0.12.2 ...我試圖在config.rb中使用配置參考http_images_path,但它看起來不像它使用此引用...它仍然解決圖像到我的本地目錄...我錯過了什麼?指南針和http_images_path

感謝您的任何幫助!

Config.rb

http_path = "/" 
# Get the directory that this configuration file exists in 
dir = File.dirname(__FILE__) 
# Compass configurations 
sass_path = dir 
css_path = File.join(dir, "..", "css") 
#images_dir = "../resources/images" 
http_images_path = "http://myurl/img/" 
output_style = :expanded 
environment = :development 

css文件:

@import "compass"; 

.dir 
{ 
    background: image-url("guide.jpg"); 
} 

回答

0

如果你是指南針的手錶......你需要重新啓動已更新config.rb生效。