+16
.github/workflows/fly-prod-deploy.yml
+16
.github/workflows/fly-prod-deploy.yml
···
1
+
name: Fly Prod Deploy
2
+
on:
3
+
push:
4
+
branches:
5
+
- main
6
+
jobs:
7
+
deploy:
8
+
name: Deploy app
9
+
runs-on: ubuntu-latest
10
+
concurrency: deploy-group
11
+
steps:
12
+
- uses: actions/checkout@v4
13
+
- uses: superfly/flyctl-actions/setup-flyctl@master
14
+
- run: flyctl deploy --remote-only -c fly.production.toml
15
+
env:
16
+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
+2
-2
.github/workflows/fly.yml
.github/workflows/fly-dev-deploy.yml
+2
-2
.github/workflows/fly.yml
.github/workflows/fly-dev-deploy.yml
···
7
7
deploy:
8
8
name: Deploy app
9
9
runs-on: ubuntu-latest
10
-
concurrency: deploy-group # optional: ensure only one action runs at a time
10
+
concurrency: deploy-group
11
11
steps:
12
12
- uses: actions/checkout@v4
13
13
- uses: superfly/flyctl-actions/setup-flyctl@master
14
-
- run: flyctl deploy --remote-only
14
+
- run: flyctl deploy --remote-only -c fly.development.toml
15
15
env:
16
16
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
+33
fly.development.toml
+33
fly.development.toml
···
1
+
app = 'semble-development'
2
+
primary_region = 'yyz'
3
+
4
+
[build]
5
+
6
+
[processes]
7
+
web = "npm start"
8
+
feed-worker = "npm run worker:feeds"
9
+
10
+
[http_service]
11
+
internal_port = 3000
12
+
force_https = true
13
+
auto_stop_machines = 'stop'
14
+
auto_start_machines = true
15
+
min_machines_running = 0
16
+
processes = ['web']
17
+
18
+
[[vm]]
19
+
memory = '512mb'
20
+
cpu_kind = 'shared'
21
+
cpus = 1
22
+
23
+
[[vm]]
24
+
processes = ['feed-worker']
25
+
memory = '256mb'
26
+
cpu_kind = 'shared'
27
+
cpus = 1
28
+
29
+
[env]
30
+
NODE_ENV="dev"
31
+
BASE_URL="https://api.dev.semble.so"
32
+
HOST="0.0.0.0"
33
+
APP_URL="https://dev.semble.so"
+33
fly.production.toml
+33
fly.production.toml
···
1
+
app = 'semble-production'
2
+
primary_region = 'yyz'
3
+
4
+
[build]
5
+
6
+
[processes]
7
+
web = "npm start"
8
+
feed-worker = "npm run worker:feeds"
9
+
10
+
[http_service]
11
+
internal_port = 3000
12
+
force_https = true
13
+
auto_stop_machines = 'stop'
14
+
auto_start_machines = true
15
+
min_machines_running = 1
16
+
processes = ['web']
17
+
18
+
[[vm]]
19
+
memory = '1gb'
20
+
cpu_kind = 'shared'
21
+
cpus = 1
22
+
23
+
[[vm]]
24
+
processes = ['feed-worker']
25
+
memory = '512mb'
26
+
cpu_kind = 'shared'
27
+
cpus = 1
28
+
29
+
[env]
30
+
NODE_ENV="prod"
31
+
BASE_URL="https://api.semble.so"
32
+
HOST="0.0.0.0"
33
+
APP_URL="https://semble.so"
-41
fly.toml
-41
fly.toml
···
1
-
# fly.toml app configuration file generated for annos on 2025-05-13T18:45:49-07:00
2
-
#
3
-
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4
-
#
5
-
6
-
app = 'annos'
7
-
primary_region = 'yyz'
8
-
9
-
[build]
10
-
11
-
# Define different process types
12
-
[processes]
13
-
web = "npm start"
14
-
feed-worker = "npm run worker:feeds"
15
-
16
-
[http_service]
17
-
internal_port = 3000
18
-
force_https = true
19
-
auto_stop_machines = 'stop'
20
-
auto_start_machines = true
21
-
min_machines_running = 1
22
-
processes = ['web'] # Only web processes handle HTTP traffic
23
-
24
-
# Default VM configuration for all processes
25
-
[[vm]]
26
-
memory = '1gb'
27
-
cpu_kind = 'shared'
28
-
cpus = 1
29
-
30
-
# Override VM settings for worker processes
31
-
[[vm]]
32
-
processes = ['feed-worker']
33
-
memory = '512mb' # Workers typically need less memory
34
-
cpu_kind = 'shared'
35
-
cpus = 1
36
-
37
-
[env]
38
-
NODE_ENV="dev"
39
-
BASE_URL="https://api.dev.semble.so"
40
-
HOST="0.0.0.0"
41
-
APP_URL="https://dev.semble.so"