Update server.rake
This commit is contained in:
parent
351d2ffbfb
commit
1d05a25b29
1 changed files with 1 additions and 3 deletions
|
@ -1,13 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
cwd = File.realpath File.join(__dir__, "..", "..", ".")
|
||||
desc "Start web server"
|
||||
task :server, [:protocol] do |_t, args|
|
||||
require "server"
|
||||
nanoc = Ryo.from_yaml(path: File.join(cwd, "nanoc.yaml"))
|
||||
h = args.to_h
|
||||
p = h[:protocol] || "tcp"
|
||||
n = File.basename(cwd)
|
||||
n = File.basename(dirs.root)
|
||||
o = if p == "unix"
|
||||
{unix: nanoc.server.unix.path}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue