执行 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回答
-
在服务器上,先手动 clone 一遍试试看能不能成功,完全 clone 成功后,再用 pm2 试一下
032019-05-19
相似问题