From b261f12c705e7ce93514c0e7de85e2ce0c64f3d2 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 5 Feb 2021 11:41:09 +0100 Subject: [PATCH] Help VS Code find the preview server (#16418) --- Rakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index bdf1535119c..8df92944c02 100644 --- a/Rakefile +++ b/Rakefile @@ -60,7 +60,8 @@ task :preview, :listen do |t, args| listen_addr = args[:listen] || '127.0.0.1' listen_addr = '0.0.0.0' unless ENV['DEVCONTAINER'].nil? 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}" + puts "Starting to watch source with Jekyll and Compass." + puts "Now listening on http://localhost:#{server_port}" system "compass compile --css-dir #{source_dir}/stylesheets" unless File.exist?("#{source_dir}/stylesheets/screen.css") jekyllPid = Process.spawn({"OCTOPRESS_ENV"=>"preview"}, "jekyll build -t --watch --incremental") compassPid = Process.spawn("compass watch")