Skip to content

Commit 4bc3acb

Browse files
committed
feat: fly config
1 parent 5f2c347 commit 4bc3acb

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/fly-deploy.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
2+
3+
name: Fly Deploy
4+
on:
5+
push:
6+
branches:
7+
- main
8+
jobs:
9+
deploy:
10+
name: Deploy app
11+
runs-on: ubuntu-latest
12+
concurrency: deploy-group # optional: ensure only one action runs at a time
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: superfly/flyctl-actions/setup-flyctl@master
16+
- run: flyctl deploy --remote-only
17+
env:
18+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

fly.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# fly.toml app configuration file generated for kotaemon on 2024-12-24T20:56:32+07:00
2+
#
3+
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4+
#
5+
6+
app = 'kotaemon'
7+
primary_region = 'sin'
8+
9+
[build]
10+
11+
[mounts]
12+
destination = "/app/ktem_app_data"
13+
source = "ktem_volume"
14+
15+
[http_service]
16+
internal_port = 8080
17+
force_https = true
18+
auto_stop_machines = 'suspend'
19+
auto_start_machines = true
20+
min_machines_running = 0
21+
processes = ['app']
22+
23+
[[vm]]
24+
memory = '4gb'
25+
cpu_kind = 'shared'
26+
cpus = 4

0 commit comments

Comments
 (0)