P2p、install、log package

This commit is contained in:
刘河 committed 2019-04-21 23:03:58 +08:00
1 parent 45521d5680
commit f6c596f318
16 files changed
+418 -203

No files matched your search

+3
View File
@@ -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 {