13 lines
291 B
Ruby
Executable File
13 lines
291 B
Ruby
Executable File
#!/usr/bin/env rake
|
|
|
|
require 'socket'
|
|
|
|
desc 'Generate the HTML demo pages including drafts'
|
|
task :demo do
|
|
ip = Socket.getifaddrs.select{|x|
|
|
x.name == "ens160" and x.addr.ipv4?
|
|
}.first.addr.ip_address
|
|
|
|
sh "hugo server --buildDrafts -w --bind #{ip} -b #{ip} --disableFastRender"
|
|
end
|