diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-10-11 15:14:41 -0500 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-10-11 15:14:41 -0500 |
commit | 86c72a4ca6355813677335351b6fce2d82d55a46 (patch) | |
tree | 46901db2e9928a3828426e4364d0dca9d88f707c | |
parent | 09c1c615f6df52cb10b925f1e03e03abee8258d0 (diff) | |
download | my_new_personal_website-86c72a4ca6355813677335351b6fce2d82d55a46.tar.xz my_new_personal_website-86c72a4ca6355813677335351b6fce2d82d55a46.zip |
ensures compiled /source/stylesheets/screen.css exists before running watch and preview tasks, fixes #214
Diffstat (limited to '')
-rw-r--r-- | Rakefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -58,6 +58,7 @@ desc "Watch the site and regenerate when it changes" task :watch do raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir) puts "Starting to watch source with Jekyll and Compass." + system "compass compile --css-dir #{source_dir}/stylesheets" unless File.exist?("#{source_dir}/stylesheets/screen.css") jekyllPid = Process.spawn("jekyll --auto") compassPid = Process.spawn("compass watch") @@ -73,6 +74,7 @@ desc "preview the site in a web browser" task :preview do raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir) puts "Starting to watch source with Jekyll and Compass. Starting Rack on port #{server_port}" + system "compass compile --css-dir #{source_dir}/stylesheets" unless File.exist?("#{source_dir}/stylesheets/screen.css") jekyllPid = Process.spawn("jekyll --auto") compassPid = Process.spawn("compass watch") rackupPid = Process.spawn("rackup --port #{server_port}") |