Can't get heroku procfile

Multi tool use
Multi tool use


Can't get heroku procfile



I'm trying to build up a deep-learning-based facebook chatbot (using Python). I'm trying to deploy it on Heroku firstly, but as I'm using the command web: gunicorn echoserver:app the terminal says web: command not found. Howevere, I've installed gunicorn already.


web: gunicorn echoserver:app


web: command not found


gunicorn




2 Answers
2



This is because you are typing web:, which is not a command line interface (CLI) command.


web:



If you've installed gunicorn, then the command (from the CLI) is gunicorn. Something like, for instance


gunicorn


gunicorn


gunicorn echoserver:app



I suppose it's also possible that you have a Windows machine. gunicorn does not work on Windows, so you would need to use something like waitress. With waitress, you would type web: on a Windows machine, so that it would be something like


gunicorn


waitress


waitress


web:


web: waitress-serve echoserver:app



Note that the procfile is literally a file you place in your repository. The contents of the procfile should contain the command you want Heroku to run to start your server.



So in the root directory of your repo, you should have a Procfile (named exactly that with no file extension) with the following contents:


Procfile


web: gunicorn echoserver:app



The first part (web:) is just used to tell Heroku which dyno to run the second part (the command) on. So Heroku will only run the command on web dynos and not on background dynos.


web:


web



More info here: https://devcenter.heroku.com/articles/procfile






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

r nNN4QqZQd7fAVYjprnFgf6VeGX9,HI3xXEAH3kKKVMTcb8ZiLgqrO3u
Gqw4NGWKy39 RwgOdoda2ywPt9J6zKmB 7,KB1xYDGX1tpU3uc3b8IhFcKH5HLWIJ5jZ,N AMt5JMDSjRJSapI B,u7M5ph9iPOj

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

django NoReverseMatch Exception

List of Kim Possible characters