feat: post deploy as sudo

This commit is contained in:
2022-09-30 13:57:27 -05:00
committed by GitHub
parent b73cc51e08
commit 624b2251c4
+2 -2
View File
@@ -19,7 +19,7 @@ module.exports = {
repo: 'https://github.com/SrJuggernaut/entgamers_pro', repo: 'https://github.com/SrJuggernaut/entgamers_pro',
path: process.env.DEPLOY_PATH, path: process.env.DEPLOY_PATH,
'pre-deploy': 'npm install && npm run build', 'pre-deploy': 'npm install && npm run build',
'post-deploy': 'pm2 startOrRestart ecosystem.config.js', 'post-deploy': 'sudo pm2 startOrRestart ecosystem.config.js',
env: { env: {
...process.env ...process.env
} }
@@ -32,7 +32,7 @@ module.exports = {
repo: 'https://github.com/SrJuggernaut/entgamers_pro', repo: 'https://github.com/SrJuggernaut/entgamers_pro',
path: process.env.DEPLOY_PATH, path: process.env.DEPLOY_PATH,
'pre-deploy': 'npm install && npm run build', 'pre-deploy': 'npm install && npm run build',
'post-deploy': 'pm2 startOrRestart ecosystem.config.js', 'post-deploy': 'sudo pm2 startOrRestart ecosystem.config.js',
env: { env: {
...process.env ...process.env
} }