Skip to content

Commit 29bc8c9

Browse files
authored
Merge pull request #71 from sine-fdn/deploy
Deploy
2 parents 9b22db4 + 5788872 commit 29bc8c9

File tree

3 files changed

+81
-28
lines changed

3 files changed

+81
-28
lines changed

demo-api/.dockerignore

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,54 @@
1-
# flyctl launch added from .gitignore
1+
# Build artifacts
22
**/target
33
**/target_lambda
4+
5+
# Environment and secrets
46
**/.env
7+
**/.env.*
58
**/keypair.pem
69

7-
# flyctl launch added from venv/.gitignore
8-
# created by virtualenv automatically
10+
# Virtual environments
911
venv/**/*
12+
13+
# Config files
1014
fly.toml
15+
fly.*.toml
16+
17+
# Version control
18+
.git
19+
.gitignore
20+
21+
# Editor files
22+
*.swp
23+
*.swo
24+
*.swn
25+
*.bak
26+
*.tmp
27+
*.log
28+
.vscode
29+
.idea
30+
.DS_Store
31+
*~
32+
33+
# Documentation and non-essential files
34+
README.md
35+
BACKLOG.md
36+
LICENSE
37+
**/*.md
38+
!Cargo.toml
39+
!**/Cargo.toml
40+
41+
# Test files
42+
**/tests
43+
**/*_test.rs
44+
**/*_tests.rs
45+
46+
# Scripts
47+
scripts/
48+
Makefile
49+
50+
# Other
51+
*.orig
52+
.coverage
53+
.pytest_cache
54+
node_modules

demo-api/fly.production.toml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,25 @@ PORT = "8000"
88
PRIMARY_REGION = "ams"
99

1010
[build]
11-
dockerfile = "Dockerfile"
11+
dockerfile = "Dockerfile"
1212

1313
[[services]]
1414
internal_port = 8_000
1515
protocol = "tcp"
16+
auto_stop_machines = "stop"
17+
auto_start_machines = true
18+
min_machines_running = 0
1619

17-
[services.concurrency]
18-
hard_limit = 25
19-
soft_limit = 20
20-
type = "connections"
20+
[services.concurrency]
21+
hard_limit = 25
22+
soft_limit = 20
23+
type = "connections"
2124

22-
[[services.ports]]
23-
handlers = [ "tls", "http" ]
24-
port = 443
25+
[[services.ports]]
26+
handlers = ["tls", "http"]
27+
port = 443
2528

26-
[[services.tcp_checks]]
27-
grace_period = "1s"
28-
interval = "15s"
29-
timeout = "2s"
29+
[[services.tcp_checks]]
30+
grace_period = "1s"
31+
interval = "15s"
32+
timeout = "2s"

demo-api/fly.staging.toml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
11
app = "ileap-preview"
22
kill_signal = "SIGINT"
33
kill_timeout = "5s"
4-
primary_region = "ams"
4+
primary_region = "fra"
55

66
[env]
77
PORT = "8000"
8-
PRIMARY_REGION = "ams"
8+
PRIMARY_REGION = "fra"
9+
10+
[build]
11+
dockerfile = "Dockerfile"
912

1013
[[services]]
1114
internal_port = 8_000
1215
protocol = "tcp"
16+
auto_stop_machines = "stop"
17+
auto_start_machines = true
18+
min_machines_running = 0
1319

14-
[services.concurrency]
15-
hard_limit = 25
16-
soft_limit = 20
17-
type = "connections"
20+
[services.concurrency]
21+
hard_limit = 25
22+
soft_limit = 20
23+
type = "connections"
1824

19-
[[services.ports]]
20-
handlers = [ "tls", "http" ]
21-
port = 443
25+
[[services.ports]]
26+
handlers = ["tls", "http"]
27+
port = 443
2228

23-
[[services.tcp_checks]]
24-
grace_period = "1s"
25-
interval = "15s"
26-
timeout = "2s"
29+
[[services.tcp_checks]]
30+
grace_period = "1s"
31+
interval = "15s"
32+
timeout = "2s"

0 commit comments

Comments
 (0)