lib/octopress/commands/serve.rb in octopress-3.0.0.alpha1 vs lib/octopress/commands/serve.rb in octopress-3.0.0.alpha2
- old
+ new
@@ -6,10 +6,10 @@
Octopress::Commands::Build.process(args, options)
serve(args, options)
end
def serve(args, options)
- guardPid = Process.spawn("guard --guardfile #{Octopress.root}/lib/octopress/guardfile")
+ guardPid = Process.spawn("guard --guardfile #{Octopress.lib_root}/octopress/guardfile")
puts "Starting Rack, serving to http://#{Octopress.configuration[:server_host]}:#{Octopress.configuration[:port]}"
rackupPid = Process.spawn("rackup --host #{Octopress.configuration[:server_host]} --port #{Octopress.configuration[:port]}")
trap("INT") {
[guardPid, rackupPid].each { |pid| Process.kill(3, pid) rescue Errno::ESRCH }