Prepare for deploy
This commit is contained in:
+2
-2
@@ -10,6 +10,6 @@ RUN bun install --frozen-lockfile --production
|
||||
COPY . /app
|
||||
|
||||
ENV NODE_ENV production
|
||||
ENTRYPOINT ["bun", "run", "start"]
|
||||
ENTRYPOINT ["bun", "run", "server"]
|
||||
|
||||
EXPOSE 1234 1235
|
||||
EXPOSE 1234
|
||||
@@ -15,7 +15,9 @@ async function main({ url }: { url: string }) {
|
||||
headers: data.headers,
|
||||
})
|
||||
.then((res) => res.text())
|
||||
.then(socket.send);
|
||||
.then((res) => {
|
||||
socket.send(res);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# fly.toml app configuration file generated for tunnel on 2024-03-18T21:37:28-04:00
|
||||
#
|
||||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
|
||||
#
|
||||
|
||||
app = 'tunnel'
|
||||
primary_region = 'yul'
|
||||
@@ -19,12 +17,4 @@ primary_region = 'yul'
|
||||
[[vm]]
|
||||
memory = '1gb'
|
||||
cpu_kind = 'shared'
|
||||
cpus = 1
|
||||
|
||||
# [[services]]
|
||||
# internal_port = 1235
|
||||
# protocol = "tcp"
|
||||
|
||||
[[services.ports]]
|
||||
handlers = ["tls", "http"]
|
||||
port = 443
|
||||
cpus = 1
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"server": "bun run server.ts",
|
||||
"lt": "bun run client/index.ts",
|
||||
"lt": "bun run client.ts",
|
||||
"demo": "bun run demo.ts"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user