Add artificer.service for proper prod running, attempting to add cmdUtils back into sonar
This commit is contained in:
		
							parent
							
								
									edac1db702
								
							
						
					
					
						commit
						f79091a2a8
					
				| 
						 | 
					@ -12,6 +12,6 @@ sonar.exclusions=emojis
 | 
				
			||||||
sonar.sourceEncoding=UTF-8
 | 
					sonar.sourceEncoding=UTF-8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Exclusions for copy-paste detection
 | 
					# Exclusions for copy-paste detection
 | 
				
			||||||
# src/commandUtils.ts, src/commands/rollHelp.ts is excluded to get rid of the duplicate code compliant.  Sonar does not like you initializing JSON in ts files.
 | 
					# src/commands/rollHelp.ts is excluded to get rid of the duplicate code compliant.  Sonar does not like you initializing JSON in ts files.
 | 
				
			||||||
# db/initialize.ts, db/populateDefaults.ts are excluded to get rid of some duplicate code compliants.  Sonar does not like the repeated DB calls even when they are unique calls.
 | 
					# db/initialize.ts, db/populateDefaults.ts are excluded to get rid of some duplicate code compliants.  Sonar does not like the repeated DB calls even when they are unique calls.
 | 
				
			||||||
sonar.cpd.exclusions=src/commandUtils.ts,src/commands/rollHelp.ts,db/initialize.ts,db/populateDefaults.ts
 | 
					sonar.cpd.exclusions=src/commands/rollHelp.ts,db/initialize.ts,db/populateDefaults.ts
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,14 @@
 | 
				
			||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=The Artificer Discord Bot
 | 
				
			||||||
 | 
					Documentation=https://github.com/Burn-E99/TheArtificer
 | 
				
			||||||
 | 
					After=network.target
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Service]
 | 
				
			||||||
 | 
					Type=simple
 | 
				
			||||||
 | 
					PIDFile=/run/deno.pid
 | 
				
			||||||
 | 
					ExecStart=/root/.deno/bin/deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/solver/,./src/endpoints/gets/heatmap-base.png --allow-net .\mod.ts
 | 
				
			||||||
 | 
					RestartSec=60
 | 
				
			||||||
 | 
					Restart=on-failure
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Install]
 | 
				
			||||||
 | 
					WantedBy=multi-user.target
 | 
				
			||||||
		Loading…
	
		Reference in New Issue