a cache for slack profile pictures and emojis

feat: use compile version in deploy

dunkirk.sh cd5b7f4f e96c7805

verified
Changed files
+26 -25
.github
workflows
+1
.github/workflows/deploy.yaml
··· 26 26 git fetch --all 27 27 git reset --hard origin/main 28 28 ~/.bun/bin/bun install 29 + ~/.bun/bin/bun run build 29 30 sudo /usr/bin/systemctl restart cachet.service 30 31 EOF
+1 -1
cachet.service
··· 6 6 [Service] 7 7 Type=exec 8 8 WorkingDirectory=/home/kierank/cachet 9 - ExecStart=bun run src/index.ts 9 + ExecStart=dist/cachet 10 10 TimeoutStartSec=0 11 11 Restart=on-failure 12 12 RestartSec=1s
+24 -24
package.json
··· 1 1 { 2 - "name": "cachet", 3 - "version": "0.3.2", 4 - "scripts": { 5 - "test": "echo \"Error: no test specified\" && exit 1", 6 - "dev": "bun run --watch src/index.ts", 7 - "start": "bun run src/index.ts", 8 - "build": "bun build --target=bun --production --outdir=dist ./src/index.ts" 9 - }, 10 - "dependencies": { 11 - "@sentry/bun": "^9.40.0", 12 - "@tqman/nice-logger": "^1.0.7", 13 - "@types/node-cron": "^3.0.11", 14 - "bottleneck": "^2.19.5", 15 - "elysia": "1.1.26", 16 - "node-cron": "^3.0.3", 17 - "sentry": "^0.1.2" 18 - }, 19 - "devDependencies": { 20 - "@types/bun": "latest" 21 - }, 22 - "private": true, 23 - "peerDependencies": { 24 - "typescript": "^5" 25 - } 2 + "name": "cachet", 3 + "version": "0.3.2", 4 + "scripts": { 5 + "test": "echo \"Error: no test specified\" && exit 1", 6 + "dev": "bun run --watch src/index.ts", 7 + "start": "bun run src/index.ts", 8 + "build": "bun build --compile --outfile dist/cachet --production ./src/index.ts" 9 + }, 10 + "dependencies": { 11 + "@sentry/bun": "^9.40.0", 12 + "@tqman/nice-logger": "^1.0.7", 13 + "@types/node-cron": "^3.0.11", 14 + "bottleneck": "^2.19.5", 15 + "elysia": "1.1.26", 16 + "node-cron": "^3.0.3", 17 + "sentry": "^0.1.2" 18 + }, 19 + "devDependencies": { 20 + "@types/bun": "latest" 21 + }, 22 + "private": true, 23 + "peerDependencies": { 24 + "typescript": "^5" 25 + } 26 26 }