Skip to content

Commit

Permalink
ci: Update Fly.io deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
KingMob committed Jun 6, 2024
1 parent 99fe8e9 commit aac9a24
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 27 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source_env_if_exists .envrc.local
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules/
/build/
.envrc.local
2 changes: 1 addition & 1 deletion bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

fly:deploy {:depends [docker:build]
:doc "Deploy site to fly.io"
:task (do (shell (str "flyctl deploy --image " image-name))
:task (do (shell (str "flyctl deploy --local-only --image " image-name))
(println (str "Site deployed. To view it, navigate to https://" image-name ".fly.dev/")))}

site:build {:doc "Build site"
Expand Down
55 changes: 29 additions & 26 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,42 +1,45 @@
# fly.toml file generated for gensql-documentation on 2022-07-06T12:30:52-04:00
# fly.toml app configuration file generated for gensql-documentation on 2024-05-06T21:41:45+07:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "gensql-documentation"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
app = 'gensql-documentation'
primary_region = 'bos'
kill_signal = 'SIGINT'
kill_timeout = '5s'

[experimental]
auto_rollback = true

[build]
image = "gensql-documentation"
image = 'gensql.documentation'

[env]
PORT = "8080"

[experimental]
allowed_public_ports = []
auto_rollback = true
PORT = '8080'

[[services]]
http_checks = []
protocol = 'tcp'
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
processes = ['app']

[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
handlers = ['http']
force_https = true

[[services.ports]]
handlers = ["tls", "http"]
port = 443
handlers = ['tls', 'http']

[services.concurrency]
type = 'connections'
hard_limit = 25
soft_limit = 20

[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
interval = '15s'
timeout = '2s'
grace_period = '1s'

[[vm]]
size = 'shared-cpu-1x'

0 comments on commit aac9a24

Please sign in to comment.