Add artificer.service for proper prod running, attempting to add cmdUtils back into sonar

This commit is contained in:
Ean Milligan (Bastion) 2022-07-04 22:39:25 -04:00
parent edac1db702
commit f79091a2a8
2 changed files with 16 additions and 2 deletions

View File

@ -12,6 +12,6 @@ sonar.exclusions=emojis
sonar.sourceEncoding=UTF-8
# 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.
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

14
artificer.service Normal file
View File

@ -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