How do I run Laravel commands in Heroku?
How do I run Laravel commands in Heroku?
What is a Procfile Heroku?
Heroku apps include a Procfile that specifies the commands that are executed by the app on startup. You can use a Procfile to declare a variety of process types, including: Your app’s web server. Multiple types of worker processes. A singleton process, such as a clock.
What is a Procfile?
A Procfile is a text file named Procfile placed in the root of your application that lists the process types in an application. Each process type is a declaration of a command that is executed when a container of that process type is started.
How do I create a Procfile?
INSTRUCTIONS
- Make sure to be inside the Image-Classification-App directory: cd ~ cd Image-Classification-App.
- Create a file named Procfile using the following command in the console: nano Procfile.
- Also, Write the following in the Procfile . One space should be there between web: and gunicorn . web: gunicorn app:app.