Browse Source

CHANGE | Docker-compose stage

merge-requests/137/merge
Vitalik 3 years ago
parent
commit
7a24ee98b7
  1. 2
      docker-compose.stage.yml
  2. 2
      ecosystem.config.js
  3. 1
      package.json

2
docker-compose.stage.yml

@ -19,7 +19,7 @@ services: @@ -19,7 +19,7 @@ services:
- taskme-minio
volumes:
- ./:/home/node/app
command: npm run start
command: npm run start:stage
taskme-postgres:
image: postgres:11

2
ecosystem.config.js

@ -5,7 +5,7 @@ module.exports = { @@ -5,7 +5,7 @@ module.exports = {
script: './dist/main.js',
node_args: '-r dotenv/config',
watch: true,
ignore_watch: ['taskme', 'node_modules'],
ignore_watch: ['taskme', 'node_modules', '.git', '.husky', 'nginx'],
},
],
}

1
package.json

@ -10,6 +10,7 @@ @@ -10,6 +10,7 @@
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "pm2-runtime start ecosystem.config.js",
"start:stage": "pm2-runtime start ecosystem.config.prod.js",
"build:dev": " nest build --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "nest start --debug",

Loading…
Cancel
Save