Skip to content

Commit 950dced

Browse files
committed
ci: Add start script
1 parent d4abc32 commit 950dced

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ecosystem.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = {
2222
"repo" : "[email protected]:circlecell/eslint.io.git",
2323
"path" : "/var/web/eslint.io",
2424
"ssh_options": ["StrictHostKeyChecking=no", "PasswordAuthentication=no"],
25-
"post-deploy" : "rm -rf node_modules; npm run install-all && npm run build"
25+
"post-deploy" : "rm -rf node_modules; npm run install-all && npm run build && npm start"
2626
}
2727
}
2828
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"travis-deploy": "if-env TRAVIS_BRANCH=master TRAVIS_PULL_REQUEST=false && npm run semantic-release || echo 'Deploy is not run'",
1919
"lint": "eslint .",
2020
"open-browser": "opn http://localhost:$PORT",
21-
"try-production": "NODE_ENV=production PORT=8016 concurrently 'npm run open-browser' 'node ./packages/backend'"
21+
"try-production": "NODE_ENV=production PORT=8016 concurrently 'npm run open-browser' 'node ./packages/backend'",
22+
"start": "pm2 startOrRestart ecosystem.config.js --env production"
2223
},
2324
"config": {
2425
"validate-commit-msg": {

0 commit comments

Comments
 (0)