环境
我正在尝试使用PM2部署NodeJS项目
我的PM2生态系统文件
deploy : {
production : {
key : '~/.ssh/id_rsa',
user : 'administrator',
host : '88.99.107.130',
ref : 'origin/master',
repo : 'https://github.com/jayvolr/forumerly.git',
path : 'C:\\WindowsPath',
'post-deploy' : 'nvm install && npm install && /root/.nvm/versions/node/v7.9.0/bin/pm2 reload ecosystem.config.js --env production && pm2 startOrRestart ecosystem.config.js'
},
我已在开发计算机上打开GIT-Bash,并在运行配置文件时收到以下错误消息
$ pm2 deploy production setup
--> Deploying to production environment
--> on host 88.99.107.130
○ hook pre-setup
The syntax of the command is incorrect.
setup paths failed
Deploy failed
1