Deployment updates

This commit is contained in:
2026-08-22 20:00:57 -04:00
parent 2982c1ee99
commit ac087c458d
3 changed files with 11 additions and 3 deletions
+3
View File
@@ -19,5 +19,8 @@ FROM oven/bun:1-alpine AS runner
WORKDIR /app WORKDIR /app
COPY --from=builder /app/dist ./dist COPY --from=builder /app/dist ./dist
RUN mkdir -p /app/data && chown -R bun:bun /app/data
VOLUME ["/app/data"]
USER bun USER bun
CMD ["bun", "dist/index.js"] CMD ["bun", "dist/index.js"]
+7 -2
View File
@@ -1,11 +1,16 @@
# fly.toml app configuration file generated for kaczynski-bot-2-0 on 2026-05-16T14:37:01-04:00 # fly.toml app configuration file generated for kaczynski-bot on 2026-08-22T19:58:11-04:00
# #
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. # See https://fly.io/docs/reference/configuration/ for information about how to use this file.
# #
app = 'kaczynski-bot-2-0' app = 'kaczynski-bot'
primary_region = 'iad' primary_region = 'iad'
[build]
[[mounts]]
source = 'data'
destination = '/app/data'
[http_service] [http_service]
internal_port = 8080 internal_port = 8080
force_https = true force_https = true
+1 -1
View File
@@ -3,7 +3,7 @@ interface Data {
} }
export default class DataService { export default class DataService {
private static readonly DATA_PATH = "./data.json"; private static readonly DATA_PATH = "./data/data.json";
private static file: Bun.BunFile | undefined; private static file: Bun.BunFile | undefined;
private static _data: Data = { private static _data: Data = {
// default values (will be overwritten) // default values (will be overwritten)