diff --git a/index.js b/index.js index c6eafdb..996e9fa 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ -// const pathHierarchy = '../../../' //脚本到项目的层级 项目/node_modules/deploy-node/index.js -const pathHierarchy = './test/' //测试目录 +const pathHierarchy = '../../../' //脚本到项目的层级 项目/node_modules/deploy-node/index.js +// const pathHierarchy = './test/' //测试目录 const inquirer = require('inquirer') //命令行交互 const runUploadTask = require('./ssh/upload') diff --git a/ssh/upload.js b/ssh/upload.js index 6fee924..1231950 100755 --- a/ssh/upload.js +++ b/ssh/upload.js @@ -1,6 +1,6 @@ const chalk = require('chalk') //命令行颜色 const ora = require('ora') // 加载流程动画 -const spinner_style = require('../spinner_style') //加载动画样式 +const spinner_style = require('../utils/spinner_style') //加载动画样式 const shell = require('shelljs') // 执行shell命令 const node_ssh = require('node-ssh') // ssh连接服务器 diff --git a/spinner_style.js b/utils/spinner_style.js similarity index 100% rename from spinner_style.js rename to utils/spinner_style.js