prxq has joined #nanoc
prxq_ has quit [Ping timeout: 245 seconds]
number-six has quit [Ping timeout: 260 seconds]
number-six has joined #nanoc
ics has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
VitamineD has joined #nanoc
myghty has quit [*.net *.split]
irsol has quit [*.net *.split]
myghty has joined #nanoc
irsol has joined #nanoc
irsol has quit [Max SendQ exceeded]
irsol has joined #nanoc
dkm has quit [Ping timeout: 272 seconds]
dkm has joined #nanoc
ics has joined #nanoc
ics has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
myghty has quit [Ping timeout: 252 seconds]
myghty has joined #nanoc
ics has joined #nanoc
pkunc has joined #nanoc
zaiste has quit [Ping timeout: 246 seconds]
stbuehler has quit [Ping timeout: 264 seconds]
stbuehler has joined #nanoc
zaiste has joined #nanoc
pkunc has quit [Quit: Leaving.]
pkunc has joined #nanoc
ics has quit [Ping timeout: 252 seconds]
ics has joined #nanoc
<
myghty>
I am trying to build a picture gallery with nanoc. has anyone done this before?
myghty has quit [Ping timeout: 252 seconds]
myghty has joined #nanoc
jugglinmike has joined #nanoc
VitamineD has quit [Quit: Computer has gone to sleep.]
LuxuryMode has joined #nanoc
<
LuxuryMode>
How can I make nanoc auto compile when things are changed so i just refresh my browser to see changes?
VitamineD has joined #nanoc
<
pkunc>
LuxuryMode: yes
<
pkunc>
LuxuryMode: use guard
<
pkunc>
cd yourRepo
<
LuxuryMode>
oh cool, thanks
<
pkunc>
obviously guard in different terminal than nanoc view
<
LuxuryMode>
looks like my guard install is messed up
<
LuxuryMode>
gem install guard or is it something else?
<
pkunc>
guard will recompile and nanoc view is just webrick
<
pkunc>
let me check
<
pkunc>
[~/Sites/sarkababicka.com (master)]$ nanoc -v
<
pkunc>
nanoc 3.7.3 © 2007-2014 Denis Defreyne.
<
pkunc>
Running ruby 2.1.0 (2013-12-25) on x86_64-darwin13.0 with RubyGems 2.2.0.
<
pkunc>
Guard version 2.6.1
<
pkunc>
[~/Sites/sarkababicka.com (master)]$ guard -v
<
LuxuryMode>
haha i have 1.8.1
<
LuxuryMode>
nanoc projects dont have gemfiles, right?
<
LuxuryMode>
so i shouldnt add to a gemfile
<
LuxuryMode>
but just do gem install guard i guess?
<
pkunc>
I have gem file
<
LuxuryMode>
oh really?
<
pkunc>
So I have all in my gemfile and you use bundler then
<
pkunc>
[~/Sites/pavelkunc.cz (master)]$ bundle exec guard
<
pkunc>
15:57:12 - INFO - Guard is using TerminalTitle to send notifications.
<
pkunc>
15:57:13 - INFO - Guard is now watching at '/Users/pavel/Sites/pavelkunc.cz'
<
pkunc>
15:57:13 - INFO - Compilation succeeded.
<
pkunc>
[1] guard(main)>
<
LuxuryMode>
just put it in root?
<
pkunc>
Yes on the same level as I have Rules, config.ymk
<
pkunc>
gem 'nanoc'
<
pkunc>
gem 'guard-nanoc'
<
pkunc>
is what I have
<
LuxuryMode>
that's all you have in the gemfile?
<
pkunc>
full gem file is
<
pkunc>
gem 'nanoc'
<
pkunc>
gem 'nanoc-image-compressor'
<
pkunc>
gem 'guard-nanoc'
<
pkunc>
gem 'kramdown'
<
pkunc>
gem 'mime-types'
<
pkunc>
gem 'nokogiri'
<
pkunc>
gem 'systemu'
<
pkunc>
gem 'builder'
<
pkunc>
gem 'image_size'
<
pkunc>
LuxuryMode: ^
<
LuxuryMode>
pkunc thanks a lot
<
LuxuryMode>
so how does this work now
<
LuxuryMode>
'guard' in one terminal
<
LuxuryMode>
nanoc view in another?
<
LuxuryMode>
pkunc^
<
LuxuryMode>
when i run guard it just shows [1] guard(main)>
<
pkunc>
that's correct, change something in your content and you'll see in guard window/terminal what it re-compiled
<
pkunc>
guard just watches and runs nanoc compile
<
pkunc>
so now you need to actually view content somewhere
<
pkunc>
and that's the second terminal with nanoc view
<
pkunc>
where you see your http requests
<
pkunc>
LuxuryMode: ^
<
LuxuryMode>
doesnt seem to work
<
pkunc>
you should see something like this when you save file within your content/*
<
pkunc>
16:37:55 - INFO - Compilation succeeded.
<
pkunc>
16:37:55 - INFO - Guard is now watching at '/Users/pavel/Sites/pavelkunc.cz'
<
pkunc>
update [0.10s] output/blog/2014/uk-to-czech-trip/index.html
<
pkunc>
update [0.01s] output/blog/index.html
<
pkunc>
update [0.03s] output/blog/blog.xml
<
pkunc>
and in second terminal I have:
<
pkunc>
Sites/pavelkunc.cz (master)]$ bundle exec nanoc view
<
pkunc>
[2014-09-09 16:40:04] INFO WEBrick 1.3.1
<
pkunc>
[2014-09-09 16:40:04] INFO ruby 2.1.0 (2013-12-25) [x86_64-darwin13.0]
<
pkunc>
[2014-09-09 16:40:04] INFO WEBrick::HTTPServer#start: pid=90053 port=3000
<
pkunc>
127.0.0.1 - - [09/Sep/2014 16:40:08] "GET / HTTP/1.1" 200 6541 0.0019
<
pkunc>
localhost - - [09/Sep/2014:16:40:08 BST] "GET / HTTP/1.1" 200 6541
<
pkunc>
127.0.0.1 - - [09/Sep/2014 16:40:08] "GET /css/web.css HTTP/1.1" 200 3000 0.0031
<
pkunc>
localhost - - [09/Sep/2014:16:40:08 BST] "GET /css/web.css HTTP/1.1" 200 3000
<
pkunc>
127.0.0.1 - - [09/Sep/2014 16:40:08] "GET /css/screen.css HTTP/1.1" 200 12337 0.0081
LuxuryMode has quit [Quit: Computer has gone to sleep.]
myghty has left #nanoc [#nanoc]
LuxuryMode has joined #nanoc
cDlm has joined #nanoc
cDlm has quit [Client Quit]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
VitamineD has quit [Ping timeout: 245 seconds]
ctp has joined #nanoc
jugglinmike has quit [Quit: Leaving.]
cDlm has joined #nanoc
pkunc has quit [Quit: Leaving.]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ics has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctp has joined #nanoc
ctp has quit [Client Quit]
ctp has joined #nanoc
ctp has quit [Client Quit]
ics has joined #nanoc
LuxuryMode has quit [Quit: Computer has gone to sleep.]
LuxuryMode has joined #nanoc
pkunc has joined #nanoc
ics has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pkunc has quit [Quit: Leaving.]