I am trying to deploy my go application to fly.io and i am running into some issues. When doing fly launch I entered all the details it asked me for, including adding a redis database. All of the fly launch steps went well, but when I ran fly deploy, I get this error:
bash: gunicorn: command not found
in the console. From what I understand, gunicorn is only needed for python deployments so I’m not sure why it’s running for my go app. Here is my fly.toml file:
# fly.toml app configuration file generated for triton-search on 2023-07-04T14:15:55-07:00 # # See https://fly.io/docs/reference/configuration/ for information about how to use this file. # app = "triton-search" primary_region = "" [build] builder = "paketobuildpacks/builder:base" buildpacks = ["gcr.io/paketo-buildpacks/go"] [env] PORT = "8080" [deploy] command = "go run main.go" [http_service] internal_port = 8080 force_https = true auto_stop_machines = true auto_start_machines = true min_machines_running = 0
Would appreciate any help / guidance in fixing this issue.