无法使用grunt ssh在服务器上执行任务



我正在尝试使用grunt-ssh从我的macbookpro自动部署服务器。因此,我想做的是从我的私人比特币存储库中提取。

一旦我在bash上执行grunt deploy,部署看起来就可以了,但在服务器中什么都没有得到

这是我的咕哝文件:module.exports=函数(grunt){grunt.initConfig({sshconfig:{通知:{主机:'mydomain.com',端口:22,username:'root',代理:process.env.SSH_AUTH_SOCK}},sshexec:{部署:{命令:["cd notify",'git pull origin master','npm install',].join('&&'),选项:{config:"通知"}}}});

    // Load the plugin that provides "sshevexc" task
    grunt.loadNpmTasks('grunt-ssh');
    // Register new task, deploy
    grunt.registerTask('deploy', ['sshexec:deploy'], function(err){
        if(err)
            return false;
        grunt.log.write('Done deploying!').ok();
    });
}

尝试在sshconfig:中添加

agentForward:真正的

最新更新