pm2
pm2 copied to clipboard
setup paths failed
pm2 always error 'setup paths failed' and pm2 v2.8.0
pm2 deploy ecosystem.json production setup
--> Deploying to production environment
--> on host 39.**.**.**
○ hook pre-setup
ssh_exchange_identification: Connection closed by remote host
setup paths failed
Deploy failed
##ecosystem.json
{
"apps": [
{
"name": "Website",
"script": "app.js",
"env": {
"COMMON_VARIABLE": "true"
},
"env_production": {
"NODE_ENV": "production"
}
}
],
"deploy": {
"production": {
"user": "daibin",
"host": ["***"],
"port": "3000",
"ref": "origin/master",
"repo": "[email protected]:**/**.git",
"path": "/www/website/production",
"ssh_options": "StrictHostKeyChecking=no",
"post-deploy" : "pm2 startOrRestart ecosystem.json --env production",
"env": {
"NODE_ENV": "production"
}
}
}
}
The actual error is just above : ssh_exchange_identification: Connection closed by remote host
So not related to PM2.