执行 pm2 deploy ecosystem.json production setup时,报错:Too many arguments.

来源:10-4 部署发布电影网站并连接线上 MongoDB

Dreamer1017

2018-11-25

执行 pm2 deploy ecosystem.json production setup时,
报错:Too many arguments.

PS G:\myprojects\location> pm2 deploy ecosystem.json production setup
--> Deploying to production environment
--> on host 47.107.175.21
  ○ hook pre-setup
  ○ running setup

  ○ cloning git@gitee.com:niuyi1017/backend-projects.git

  ○ full fetch

Too many arguments.

                   usage: git clone [options] [--] <repo> [<dir>]

                                                                     -v, --verbose         bo-hardlinks        don't use local hardlinks, always copyn
    -s, --shared          setup as shared repository
                                                        --recursive           initialize submodulew repository

    -s, --shared          setup as shared repository                                                                            set config inside the ne
                                                        --recursive           initialize submodulew repository


                                                                                                                              set config inside the ne
  failed to clone
Deploy failed
             ?[33m1?[39m
写回答

1回答

Scott

2018-11-25

在服务器上,先手动 clone 一遍试试看能不能成功,完全 clone 成功后,再用 pm2 试一下

0
3
Scott
回复
慕工程0472918
windows 上换一个命令行工具实施,比如 powershell cmder
2019-05-19
共3条回复

Node.js项目线上服务器部署与发布

阿里云部署Node.js+MongoDB+Nginx的应用项目,打通全栈

1747 学习 · 448 问题

查看课程