添加docker安装node

This commit is contained in:
marvzhang
2020-01-03 15:45:18 +08:00
parent 7310df1be6
commit ec2a738958
8 changed files with 18 additions and 181 deletions

View File

@@ -26,6 +26,9 @@ server:
# mac地址 或者 ip地址如果是ip则需要手动指定IP
type: "mac"
ip: ""
lang: # 安装语言环境, Y 为安装N 为不安装,只对 Docker 有效
python: "Y"
node: "N"
spider:
path: "/app/spiders"
task:

View File

@@ -415,6 +415,7 @@ func UninstallPythonLocalDep(depName string) (string, error) {
cmd := exec.Command("pip", "uninstall", "-y", depName)
outputBytes, err := cmd.Output()
if err != nil {
log.Errorf(string(outputBytes))
log.Errorf(err.Error())
debug.PrintStack()
return fmt.Sprintf("error: %s", err.Error()), err