...
|
...
|
@@ -58,6 +58,7 @@ desc "Watch the site and regenerate when it changes"
|
58
|
58
|
task :watch do
|
59
|
59
|
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
|
60
|
60
|
puts "Starting to watch source with Jekyll and Compass."
|
|
61
|
+ system "compass compile --css-dir #{source_dir}/stylesheets" unless File.exist?("#{source_dir}/stylesheets/screen.css")
|
61
|
62
|
jekyllPid = Process.spawn("jekyll --auto")
|
62
|
63
|
compassPid = Process.spawn("compass watch")
|
63
|
64
|
|
...
|
...
|
@@ -73,6 +74,7 @@ desc "preview the site in a web browser"
|
73
|
73
|
task :preview do
|
74
|
74
|
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
|
75
|
75
|
puts "Starting to watch source with Jekyll and Compass. Starting Rack on port #{server_port}"
|
|
76
|
+ system "compass compile --css-dir #{source_dir}/stylesheets" unless File.exist?("#{source_dir}/stylesheets/screen.css")
|
76
|
77
|
jekyllPid = Process.spawn("jekyll --auto")
|
77
|
78
|
compassPid = Process.spawn("compass watch")
|
78
|
79
|
rackupPid = Process.spawn("rackup --port #{server_port}")
|