@@ -95,37 +95,47 @@ For more information, see [the reference documentation](https://github.com/gjtor
9595
9696## Development
9797
98+ You can fetch the latest dependencies by opening the command line and running ` script/bootstrap ` :
99+
100+ ``` sh
101+ $ script/bootstrap
102+ ==> Installing gem dependencies…
103+ ==> Installing npm dependencies…
104+ ```
105+
106+ You'll need Ruby 2.2.3 and at least Node v4.x.
107+
108+ You can run ` bundle exec rake build ` to generate the site, but it's often more useful
109+ to simply build the server * and* start the site at the same time.
110+
98111Nanoc compiles the site into static files living in ` ./output ` . It's
99- smart enough not to try to compile unchanged files:
112+ smart enough not to try to compile unchanged files.
100113
101- ``` sh
102- $ bundle exec nanoc compile
114+ You can start the site with ` script/server ` :
115+
116+ ``` sh
117+ $ script/server
103118Loading site data...
104119Compiling site...
105120 identical [0.00s] output/css/960.css
106121 identical [0.00s] output/css/pygments.css
107122 identical [0.00s] output/css/reset.css
108123 identical [0.00s] output/css/styles.css
109124 identical [0.00s] output/css/uv_active4d.css
110- update [0.28s] output/index.html
111- update [1.31s] output/v3/gists/comments/index.html
112- update [1.92s] output/v3/gists/index.html
113- update [0.25s] output/v3/issues/comments/index.html
114- update [0.99s] output/v3/issues/labels/index.html
115- update [0.49s] output/v3/issues/milestones/index.html
116- update [0.50s] output/v3/issues/index.html
117- update [0.05s] output/v3/index.html
125+ update [0.28s] output/index.html
126+ update [1.31s] output/v3/gists/comments/index.html
127+ update [1.92s] output/v3/gists/index.html
128+ update [0.25s] output/v3/issues/comments/index.html
129+ update [0.99s] output/v3/issues/labels/index.html
130+ update [0.49s] output/v3/issues/milestones/index.html
131+ update [0.50s] output/v3/issues/index.html
132+ update [0.05s] output/v3/index.html
133+ …
118134
119135Site compiled in 5.81s.
120136```
121137
122- You can set up whatever you want to view the files. If using the adsf
123- gem (as listed in the Gemfile), you can start Webrick:
124-
125- ``` sh
126- $ bundle exec nanoc view
127- $ open http://localhost:3000
128- ```
138+ The site is hosted at ` http://localhost:4000 ` .
129139
130140## Deploy
131141
0 commit comments