Deployment updates
This commit is contained in:
@@ -19,5 +19,8 @@ FROM oven/bun:1-alpine AS runner
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
||||
RUN mkdir -p /app/data && chown -R bun:bun /app/data
|
||||
VOLUME ["/app/data"]
|
||||
|
||||
USER bun
|
||||
CMD ["bun", "dist/index.js"]
|
||||
|
||||
@@ -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.
|
||||
#
|
||||
|
||||
app = 'kaczynski-bot-2-0'
|
||||
app = 'kaczynski-bot'
|
||||
primary_region = 'iad'
|
||||
|
||||
[build]
|
||||
[[mounts]]
|
||||
source = 'data'
|
||||
destination = '/app/data'
|
||||
|
||||
[http_service]
|
||||
internal_port = 8080
|
||||
force_https = true
|
||||
|
||||
@@ -3,7 +3,7 @@ interface Data {
|
||||
}
|
||||
|
||||
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 _data: Data = {
|
||||
// default values (will be overwritten)
|
||||
|
||||
Reference in New Issue
Block a user