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
···
git fetch --all
git reset --hard origin/main
~/.bun/bin/bun install
sudo /usr/bin/systemctl restart cachet.service
EOF
···
git fetch --all
git reset --hard origin/main
~/.bun/bin/bun install
+
~/.bun/bin/bun run build
sudo /usr/bin/systemctl restart cachet.service
EOF
+1 -1
cachet.service
···
[Service]
Type=exec
WorkingDirectory=/home/kierank/cachet
-
ExecStart=bun run src/index.ts
TimeoutStartSec=0
Restart=on-failure
RestartSec=1s
···
[Service]
Type=exec
WorkingDirectory=/home/kierank/cachet
+
ExecStart=dist/cachet
TimeoutStartSec=0
Restart=on-failure
RestartSec=1s
+24 -24
package.json
···
{
-
"name": "cachet",
-
"version": "0.3.2",
-
"scripts": {
-
"test": "echo \"Error: no test specified\" && exit 1",
-
"dev": "bun run --watch src/index.ts",
-
"start": "bun run src/index.ts",
-
"build": "bun build --target=bun --production --outdir=dist ./src/index.ts"
-
},
-
"dependencies": {
-
"@sentry/bun": "^9.40.0",
-
"@tqman/nice-logger": "^1.0.7",
-
"@types/node-cron": "^3.0.11",
-
"bottleneck": "^2.19.5",
-
"elysia": "1.1.26",
-
"node-cron": "^3.0.3",
-
"sentry": "^0.1.2"
-
},
-
"devDependencies": {
-
"@types/bun": "latest"
-
},
-
"private": true,
-
"peerDependencies": {
-
"typescript": "^5"
-
}
}
···
{
+
"name": "cachet",
+
"version": "0.3.2",
+
"scripts": {
+
"test": "echo \"Error: no test specified\" && exit 1",
+
"dev": "bun run --watch src/index.ts",
+
"start": "bun run src/index.ts",
+
"build": "bun build --compile --outfile dist/cachet --production ./src/index.ts"
+
},
+
"dependencies": {
+
"@sentry/bun": "^9.40.0",
+
"@tqman/nice-logger": "^1.0.7",
+
"@types/node-cron": "^3.0.11",
+
"bottleneck": "^2.19.5",
+
"elysia": "1.1.26",
+
"node-cron": "^3.0.3",
+
"sentry": "^0.1.2"
+
},
+
"devDependencies": {
+
"@types/bun": "latest"
+
},
+
"private": true,
+
"peerDependencies": {
+
"typescript": "^5"
+
}
}