add fly deploy

This commit is contained in:
MapleLeaf
2021-12-29 14:36:54 -06:00
parent 78b7db897e
commit 1b4cedd857
3 changed files with 58 additions and 0 deletions

5
.dockerignore Normal file
View File

@@ -0,0 +1,5 @@
**/node_modules/**
**/.cache/**
**/build/**
**/dist/**
.env

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM node:lts-slim
WORKDIR /app
COPY / ./
RUN ls -R
RUN npm install -g pnpm
RUN pnpm install --unsafe-perm --frozen-lockfile
RUN pnpm -C packages/docs build
CMD [ "pnpm", "-C", "packages/docs", "start" ]

40
fly.toml Normal file
View File

@@ -0,0 +1,40 @@
# fly.toml file generated for reacord on 2021-12-29T14:06:41-06:00
app = "reacord"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
PORT = 8080
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"