lapeh 2.4.3 → 2.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/index.js CHANGED
@@ -263,6 +263,7 @@ async function upgradeProject() {
263
263
  '.vscode',
264
264
  'tsconfig.json',
265
265
  'README.md',
266
+ 'ecosystem.config.js',
266
267
  'src/redis.ts', // Core framework file
267
268
  'src/prisma.ts', // Core framework file
268
269
  ];
@@ -0,0 +1,17 @@
1
+ module.exports = {
2
+ apps: [{
3
+ name: "lapeh-app",
4
+ script: "./node_modules/lapeh/bin/index.js",
5
+ args: "start",
6
+ instances: "max",
7
+ exec_mode: "cluster",
8
+ watch: false,
9
+ max_memory_restart: '1G',
10
+ env: {
11
+ NODE_ENV: "production",
12
+ },
13
+ env_production: {
14
+ NODE_ENV: "production",
15
+ }
16
+ }]
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lapeh",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
4
4
  "description": "Framework API Express yang siap pakai (Standardized)",
5
5
  "main": "dist/lib/bootstrap.js",
6
6
  "bin": {
@@ -31,7 +31,8 @@
31
31
  ".env.example",
32
32
  "eslint.config.mjs",
33
33
  "prisma.config.ts",
34
- "gitignore.template"
34
+ "gitignore.template",
35
+ "ecosystem.config.js"
35
36
  ],
36
37
  "scripts": {
37
38
  "dev": "node bin/index.js dev",