config for unpkg.fly.dev

This commit is contained in:
Kurt 2021-03-09 21:21:37 -06:00 committed by Michael Jackson
parent b44a02d0ea
commit 3268750947
2 changed files with 42 additions and 1 deletions

40
fly.toml Normal file
View File

@ -0,0 +1,40 @@
# fly.toml file generated for frosty-dust-3645 on 2021-03-09T12:21:21-06:00
app = "unpkg"
kill_signal = "SIGINT"
kill_timeout = 5
[build]
builder = "paketobuildpacks/builder:base"
buildpacks = ["gcr.io/paketo-buildpacks/nodejs"]
[build.args]
NODE_ENV="development" # for build
[env]
PORT = "8080"
NODE_ENV = "production"
[[services]]
internal_port = 8080
protocol = "tcp"
[services.concurrency]
type = "requests"
hard_limit = 60
soft_limit = 40
[[services.ports]]
handlers = ["http"]
port = "80"
[[services.ports]]
handlers = ["tls", "http"]
port = "443"
[[services.tcp_checks]]
grace_period = "1s"
interval = "10s"
port = "8080"
restart_limit = 5
timeout = "2s"

View File

@ -8,7 +8,8 @@
"lint": "eslint .", "lint": "eslint .",
"serve": "nodemon -w server.js server.js", "serve": "nodemon -w server.js server.js",
"test": "jest", "test": "jest",
"watch": "rollup -c -w" "watch": "rollup -c -w",
"postinstall": "yarn run build"
}, },
"dependencies": { "dependencies": {
"@babel/core": "^7.2.2", "@babel/core": "^7.2.2",