- puts "Starting to watch source with Jekyll and Compass. Starting Rack on port #{server_port}"
+ puts "Starting to watch source with Jekyll and Compass. Starting Thin on port #{server_port}"
---
- rackupPid = Process.spawn("rackup --port #{server_port}")
+ thinPid = Process.spawn("thin start --port #{server_port}")
---
- [jekyllPid, compassPid, rackupPid].each { |pid| Process.kill(9, pid) rescue Errno::ESRCH }
+ [jekyllPid, compassPid, thinPid].each { |pid| Process.kill(9, pid) rescue Errno::ESRCH }
---
- [jekyllPid, compassPid, rackupPid].each { |pid| Process.wait(pid) }
+ [jekyllPid, compassPid, thinPid].each { |pid| Process.wait(pid) }
---
-の行を+のように書き換えてください。
修正が完了したらプレビューしてみます。
1234567891011121314
$ bundle exec rake preview
Starting to watch source with Jekyll and Compass. Starting Thin on port 4000
>> Using rack adapter
>> Thin web server (v1.5.1 codename Straight Razor)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:4000, CTRL+C to stop
>>> Compass is watching for changes. Press Ctrl-C to Stop.
Configuration file: /home/admin/octopress/_config.yml
Source: source
Destination: public
Generating...
done.
Auto-regeneration: enabled for 'source'
write public/stylesheets/screen.css