File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,11 @@ primary_region = "fra"
99# Define the command to run when the machine starts.
1010# This replaces the Dockerfile's CMD.
1111[processes ]
12- app = " /bin/fastside --log-level error --config /config/config.yml serve --skip-wait -l 0.0.0.0:8080 --ping-data-file /ping_data.json --load-ping-data --save-ping-data"
12+ app = " /bin/fastside --log-level error --config /config/config.yml serve --skip-wait -l 0.0.0.0:8080 --ping-data-file /ping_data/ping_data.json --load-ping-data --save-ping-data"
13+
14+ [mounts ]
15+ source = " ping_data"
16+ destination = " /ping_data"
1317
1418# This section creates files inside the container at runtime.
1519# Here, we are creating the /config/config.yml file with your specified content.
@@ -38,7 +42,6 @@ crawler:
3842 nanos: 0
3943"""
4044
41-
4245# Configure the machine size and memory.
4346# 'shared-cpu-1x' is the smallest CPU size.
4447[machines ]
@@ -51,7 +54,7 @@ crawler:
5154 internal_port = 8080 # The port your app listens on inside the container
5255 processes = [" app" ] # This service runs the 'app' process defined above
5356
54- # Ensure the machine never stops automatically.
57+ # Machines can be stopped and started automatically because of the ping data file .
5558 auto_stop_machines = true
5659 auto_start_machines = true
5760 min_machines_running = 1
@@ -75,4 +78,3 @@ crawler:
7578 method = " get"
7679 path = " /" # Assuming the root path returns a 2xx status code
7780 protocol = " http"
78-
You can’t perform that action at this time.
0 commit comments