-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathfly.preview.toml
More file actions
39 lines (32 loc) · 925 Bytes
/
fly.preview.toml
File metadata and controls
39 lines (32 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Fly.io configuration for Metaculus preview deployments (app only)
# This file is used for PR preview environments WITHOUT background workers
# See: https://fly.io/docs/reference/configuration/
app = "metaculus-preview"
primary_region = "iad"
[build]
# We use a pre-built Docker image from GitHub Container Registry
# The image is specified via --image flag during deploy
[env]
PORT = "8080"
NODE_ENV = "production"
GUNICORN_WORKERS = "2"
NODE_INSTANCES = "1"
NODE_HEAP_SIZE = "1024"
PUBLIC_DISALLOW_ALL_BOTS = "true"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[processes]
app = "scripts/prod/startapp.sh"
# VM configuration for app process
[[vm]]
memory = "2gb"
cpu_kind = "shared"
cpus = 2
processes = ["app"]
[deploy]
release_command = "scripts/prod/release.sh"