From 97361ae8b08beda89029986922eca0003dbb99e8 Mon Sep 17 00:00:00 2001 From: tka Date: Mon, 14 Jul 2014 01:07:45 +0800 Subject: [PATCH] fix watch folder --- src/app.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/app.rb b/src/app.rb index b4a2bd01..ecbd9f28 100644 --- a/src/app.rb +++ b/src/app.rb @@ -93,13 +93,20 @@ def require_compass ENV["GEM_HOME"] = CONFIG["gem_path"] ENV["GEM_PATH"] = CONFIG["gem_path"] require "rubygems" + else + # we dont use system rubygem + ENV["GEM_HOME"] = "" + ENV["GEM_PATH"] = "" end # make sure use java version library, ex json-java, eventmachine-java jruby_gems_path = File.join(Main.lib_path, "ruby", "jruby" ) scan_library( jruby_gems_path ) - require "fssm" if (OS == 'darwin' && OS_VERSION.to_f >= 10.6 ) || OS == 'linux' || OS == 'windows' - + + require 'rb-fsevent' if OS == 'darwin' && App::CONFIG['force_enable_fsevent'] + require 'rb-inotify' if OS == 'linux' + require 'listen' + require "compass" require "compass/exec"