mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 03:16:53 +00:00
P2p、install、log package
This commit is contained in:
@@ -13,6 +13,9 @@ import (
|
||||
|
||||
func InstallNps() {
|
||||
path := common.GetInstallPath()
|
||||
if common.FileExists(path) {
|
||||
log.Fatalf("the path %s has exist, does not support install", path)
|
||||
}
|
||||
MkidrDirAll(path, "conf", "web/static", "web/views")
|
||||
//复制文件到对应目录
|
||||
if err := CopyDir(filepath.Join(common.GetAppPath(), "web", "views"), filepath.Join(path, "web", "views")); err != nil {
|
||||
|
Reference in New Issue
Block a user