Commit 28c0c6f7 by adarsh
2 parents cac19bd1 d4a16a2c
git pull git pull
pm2 stop strapiapp pm2 stop centralstar_strapi
pm2 start strapiapp pm2 start centralstar_strapi
module.exports = { module.exports = {
apps: [ apps: [
{ {
name: 'strapiapp', name: 'centralstar_strapi',
script: 'npm', script: 'npm',
args: 'start', args: 'run start_prod',
instances : 7,
exec_mode : "cluster",
}, },
], ],
}; };
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
"develop": "strapi develop", "develop": "strapi develop",
"start": "strapi start", "start": "strapi start",
"build": "strapi build", "build": "strapi build",
"strapi": "strapi" "strapi": "strapi",
"start_prod": "NODE_ENV=production strapi start",
"build_prod": "NODE_ENV=production strapi build"
}, },
"dependencies": { "dependencies": {
"@strapi/plugin-i18n": "4.3.6", "@strapi/plugin-i18n": "4.3.6",
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!