Gunicorn command not found when deploying app on Heroku

I am trying to deploy my shiny app on Heroku but getting the error message

2020-02-04T09:18:55.707874+00:00 heroku[web.1]: Process exited with status 127

2020-02-04T09:18:55.649317+00:00 app[web.1]: bash: gunicorn: command not found

2020-02-04T10:03:39.701812+00:00 heroku[web.1]: State changed from crashed to starting

2020-02-04T10:04:05.267159+00:00 heroku[web.1]: Starting process with command `gunicorn app:server`

2020-02-04T10:04:07.394948+00:00 heroku[web.1]: State changed from starting to crashed

2020-02-04T10:04:07.322727+00:00 app[web.1]: bash: gunicorn: command not found

2020-02-04T10:04:07.371425+00:00 heroku[web.1]: Process exited with status 127

2020-02-04T11:34:13.442032+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=boxing-prediction-app.herokuapp.com request_id=b61e8a8a-04f5-44c2-b3b3-011fbd6871b3 fwd="197.221.254.59" dyno= connect= service= status=503 bytes= protocol=https

2020-02-04T11:34:13.592216+00:00 heroku[web.1]: State changed from crashed to starting

2020-02-04T11:34:14.358686+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=boxing-prediction-app.herokuapp.com request_id=126575e8-60e8-40a9-9aa8-95ba0a8afa15 fwd="197.221.254.59" dyno= connect= service= status=503 bytes= protocol=https

2020-02-04T11:34:40.062448+00:00 heroku[web.1]: Starting process with command `gunicorn app:server`

2020-02-04T11:34:41.838359+00:00 heroku[web.1]: State changed from starting to crashed

2020-02-04T11:34:41.811575+00:00 heroku[web.1]: Process exited with status 127

2020-02-04T11:34:41.764132+00:00 app[web.1]: bash: gunicorn: command not found

Here is what I have in my shiny app

library(shiny)
library(shinyWidgets)
library(tidyverse)
library(reticulate)
library(DT)
library(data.table)
virtualenv_create(envname = "python_environment", python= "python3")
virtualenv_install("python_environment", packages =c('pandas','catboost'))
use_virtualenv("python_environment",required = TRUE)

I have created an init.R and run.R file to run the app and install all dependencies in my home directory and my app is located in ml model >> app/boxing

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.