feat: update start script for production and add PM2 management commands
This commit is contained in:
		
							parent
							
								
									83f53a46ea
								
							
						
					
					
						commit
						2e627663d8
					
				
							
								
								
									
										1035
									
								
								backend/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1035
									
								
								backend/package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| 
						 | 
				
			
			@ -4,9 +4,12 @@
 | 
			
		|||
	"main": "index.ts",
 | 
			
		||||
	"scripts": {
 | 
			
		||||
		"build": "tsc",
 | 
			
		||||
		"start": "node dist/app.js",
 | 
			
		||||
		"start": "tsc --build && NODE_ENV=production pm2 start dist/app.js --name invoiceIssuer",
 | 
			
		||||
		"dev": "DEBUG=invoiceIssuer:* nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/app.ts",
 | 
			
		||||
		"docs": "typedoc"
 | 
			
		||||
		"docs": "typedoc",
 | 
			
		||||
		"preparedb": "prisma migrate dev --name init",
 | 
			
		||||
		"stop": "pm2 stop invoiceIssuer && pm2 delete invoiceIssuer",
 | 
			
		||||
		"clear": "rm -rf dist"
 | 
			
		||||
	},
 | 
			
		||||
	"devDependencies": {
 | 
			
		||||
		"@types/debug": "^4.1.12",
 | 
			
		||||
| 
						 | 
				
			
			@ -16,6 +19,7 @@
 | 
			
		|||
		"@types/node": "^14.0.0",
 | 
			
		||||
		"@types/nodemailer": "^6.4.17",
 | 
			
		||||
		"nodemon": "^3.1.9",
 | 
			
		||||
		"pm2": "^5.4.3",
 | 
			
		||||
		"prisma": "^6.2.1",
 | 
			
		||||
		"ts-node": "^10.0.0",
 | 
			
		||||
		"typedoc": "^0.27.6",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user