@noahyu/cd-cli 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.js +1 -1
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -127,7 +127,7 @@ async function deploy(config, version) {
|
|
|
127
127
|
if (config.afterDeploy) {
|
|
128
128
|
spinner.start('执行部署后命令...');
|
|
129
129
|
for (const cmd of config.afterDeploy) {
|
|
130
|
-
await ssh.execCommand(cmd, { cwd:
|
|
130
|
+
await ssh.execCommand(cmd, { cwd: config.server.deployPath });
|
|
131
131
|
}
|
|
132
132
|
spinner.succeed('部署后命令执行完成');
|
|
133
133
|
}
|