diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-12-10 22:25:11 +0000 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-12-10 22:25:11 +0000 |
commit | b660bd2be669765c4070b1d8c1f9026e05abdbeb (patch) | |
tree | f56c9e284b8aa4a91e7e09fcd19133da06b2f10a /docs/Rakefile | |
parent | 84026f051347a6c6668e70d120905beee0192535 (diff) |
Fix Rack setup so that viewing documentation locally is less painful.
Diffstat (limited to 'docs/Rakefile')
-rw-r--r-- | docs/Rakefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/Rakefile b/docs/Rakefile index 62b0139e..51e9b484 100644 --- a/docs/Rakefile +++ b/docs/Rakefile @@ -38,11 +38,13 @@ task :serve do server = fork { app = Rack::Builder.app { - use Bonsai::StaticPassThrough, :root => Bonsai.root_dir + "/output", :urls => ["/"] + map "/jq" do + use Bonsai::StaticPassThrough, :root => Bonsai.root_dir + "/output", :urls => ["/"] + end run Bonsai::DevelopmentServer } Rack::Handler.default.run(app, :Port => 5000) do - Launchy.open("http://localhost:5000/") + Launchy.open("http://localhost:5000/jq") end } Watch.new("{content,templates,public}/**/*") { Bonsai::Exporter.process! } |