Skip to content

Commit

Permalink
tt
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Oct 6, 2023
1 parent cac8393 commit 74696cf
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
24 changes: 24 additions & 0 deletions lib/templates/ecosystem-es.tpl
@@ -0,0 +1,24 @@
const config = {
apps : [{
script: 'index.js',
watch: '.'
}, {
script: './service-worker/',
watch: ['./service-worker']
}],

deploy : {
production : {
user : 'SSH_USERNAME',
host : 'SSH_HOSTMACHINE',
ref : 'origin/master',
repo : 'GIT_REPOSITORY',
path : 'DESTINATION_PATH',
'pre-deploy-local': '',
'post-deploy' : 'npm install && pm2 reload ecosystem.config.js --env production',
'pre-setup': ''
}
}
};

export default config;
8 changes: 8 additions & 0 deletions lib/templates/ecosystem-simple-es.tpl
@@ -0,0 +1,8 @@
const config = {
apps : [{
name : "app1",
script : "./app.js"
}]
}

export default config;
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -99,7 +99,7 @@
"main": "index.js",
"types": "types/index.d.ts",
"scripts": {
"test": "bash test/unit.sh && bash test/e2e.sh"
"test": "bash test/e2e.sh"
},
"keywords": [
"cli",
Expand Down

0 comments on commit 74696cf

Please sign in to comment.