Excuse me, what is the problem?
ecosystem.json
{
"apps": [
{
"name": "question-system",
"script": "app.js",
"env": {
"COMMON_VARIABLE": "true"
},
"env_production": {
"NODE_ENV": "production"
}
}
],
"deploy": {
"production": {
"user": "***",
"host": ["39.108.151.44"],
"port": "***",
"ref": "origin/master",
"repo": "git@github.com:WUSO01/blog-admin.git",
"path": "/www/blog/productioin",
"ssh_options": "StricHostKeyChecking=no",
"post-deploy": "npm install && bower install && pm2 startOrRestart ecosystem.json --env production",
"env": {
"NODE_ENV": "production"
}
}
}
}
Please post your json file