wip
This commit is contained in:
parent
1ccbdfc155
commit
5d9cff7244
@ -26,7 +26,10 @@ func (b *builder) Build(srcDir, dstDir string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
port := flag.Int("port", 8080, "server port")
|
var (
|
||||||
|
dst = flag.String("dst", "dst", "destination directory")
|
||||||
|
port = flag.Int("port", 8080, "server port")
|
||||||
|
)
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
devserver.DevServe(new(builder), *port, "src", "dst", "layouts")
|
devserver.DevServe(new(builder), *port, "src", *dst, "layouts")
|
||||||
}
|
}
|
||||||
|
@ -97,10 +97,10 @@ func (b *builder) Build(srcDir, dstDir string) {
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var (
|
var (
|
||||||
|
dst = flag.String("dst", "dst", "destination directory")
|
||||||
root = flag.String("root", "", "root directory")
|
root = flag.String("root", "", "root directory")
|
||||||
port = flag.Int("port", 8080, "server port")
|
port = flag.Int("port", 8080, "server port")
|
||||||
)
|
)
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
devserver.DevServe(&builder{*root}, *port, "src", *dst, "layouts")
|
||||||
devserver.DevServe(&builder{*root}, *port, "src", "dst", "layouts")
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user