I am new to fly.io and I am trying to deploy and test my app and running into multiple issues.
-
Language: Python
-
Framework: Flet
-
Database: SQLite3
-
Folder Structure, check.
-
fly.toml file in the same location as the main file, check.
-
Dockerfile in the same location, check.
-
requirements.txt file in the same location, check.
When I run the file, everything loads correctly, but when I go to launch the link, it times out or is unreachable.
Now I got a different issue with the following error message:
Error: input:3: createRelease Deploying over the remote builder is not allowed
Can anyone offer any advice on how to fix the files so I can deploy and test my app?
fly.toml:
app = "<name>"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
FLET_SERVER_PORT = "8080"
FLET_FORCE_WEB_VIEW = "true"
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
Dockerfile:
FROM python:3-alpine
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8080
CMD ["python", "./main.py"]