Questions tagged [procfile]

The Procfile is a simple YAML-esque file which sits in the root of your application code and is pushed to your application when you deploy.

The Procfile is a simple YAML-esque file which sits in the root of your application code and is pushed to your application when you deploy. This file contains a definition of every process you require in your application, and how that process should be started. It is intended to be consumed by Foreman, a utility written by a Heroku Engineer.

Most questions that need this tag will benefit from the tag.

293 questions
73
votes
3 answers

What is Procfile? and Web and Worker

Is it necessary to give 'worker' information in Procfile? If yes then what it is actually? I have already added web: node server/server.js detail in the Procfile.
Maulik Suchak
  • 1,028
  • 1
  • 8
  • 23
42
votes
3 answers

Can a Procfile have comments?

Is it possible to put comments in a Procfile? If so, what is the syntax? Not sure if this matters, but I am hosting on Heroku.
Aaron Gray
  • 11,283
  • 7
  • 55
  • 61
31
votes
3 answers

Deploy the backend and frontend on the same Heroku app/dyno

At the root of my project, I have a frontend and backend folder. Both folders contain a package.json that list their dependencies. How do I tell Heroku to run npm install on both folders when deploying the application? It seems like Heroku expects…
Maxime Dupré
  • 5,319
  • 7
  • 38
  • 72
26
votes
3 answers

Procfile start processes in their own working directory

I have this simple Procfile web: myapp myapp is in the path, but the processes home directory should be ./directory/. How can I specify in the Procfile where the process is to be started? https://github.com/ddollar/foreman/pull/101 doesn't help…
JohnDoe
  • 2,422
  • 5
  • 29
  • 44
20
votes
6 answers

Procfile not found, Heroku python app

Doing the heroku python demo and having problems with Procfile. I have it in the right directory (alongside requirements.txt, venv/, and app.py) and the file is "Procfile" without .txt extension (as other questions suggest). Contents of Procfile…
Thain
  • 245
  • 1
  • 3
  • 9
17
votes
3 answers

How to run Procfile with multiple commands on Heroku?

I'm trying to deploy the static website to Heroku and I struggle how to correctly setup the Procfile. I have next command to run on the server: npm install gulp build (will make a build with /public folder) http-server (will serve /public by…
ummahusla
  • 2,043
  • 3
  • 28
  • 42
17
votes
1 answer

Heroku: "bash: ./start.sh: Permission denied"

I have an app with a Procfile set to run a shell script, but Heroku will not run the script, stating "Permission denied". Procfile: web: ./start.sh start.sh: #!/usr/bin/env bash clear; until node app.js; do echo "Server crashed with exit…
Nifty255
  • 397
  • 2
  • 3
  • 14
16
votes
6 answers

How to get Heroku to recognize a yarn.lock or package.json within a subdirectory (not root)

I have a Rails application using React, Webpack, and Yarn for the client side. I have everything relating to the client side within the /client directory. This includes my yarn.lock and package.json files. I have a Procfile that cds into /client and…
Doug
  • 1,517
  • 3
  • 18
  • 40
16
votes
7 answers

unable to parse Procfile

I am trying to deploy an Heroku app. I must be doing something wrong with the Procfile. When I run foreman check I get this error. ERROR: no processes defined I get pretty much the same thing when deploying on Heroku -----> Building runtime…
platane
  • 178
  • 1
  • 1
  • 6
14
votes
3 answers

Killing Processes Spawned by Foreman

I have the following Procfile: web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb redis: bundle exec redis-server /usr/local/etc/redis.conf worker: bundle exec sidekiq Running $ foreman start starts up Unicorn, Redis and Sidekiq, but how…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
12
votes
7 answers

how to create Heroku procfile for windows?

Im a newbie trying to make a django app, but unfortunately my os is windows. Heroku docs is written for linux so I cant get sufficient information for app development on windows 7. First how can I make procfile using window cmd? Is there any command…
user3885390
  • 121
  • 1
  • 1
  • 4
12
votes
5 answers

How do you run multiple DelayedJob workers on a single Heroku dyno?

I am having trouble getting my dynos to run multiple delayed job worker processes. My Procfile looks like this: worker: bundle exec script/delayed_job -n 3 start and my delayed_job script is the default provided by the gem: #!/usr/bin/env…
Andrew Hubbs
  • 9,338
  • 9
  • 48
  • 71
11
votes
5 answers

Waitress on Heroku giving error

I am trying to switch from Gunicorn to Waitress on Heroku. In the logs, I keep getting an error from Waitress: Error: Bad module 'cardisle' In my procfile, I have: web: waitress-serve --port=$PORT cardisle.wsgi:application If I remove the .wsgi…
Kinetic Stack
  • 788
  • 12
  • 33
10
votes
4 answers

Python, Flask, Gunicorn Error: Unrecognized Arguments

I am running my app app.py using Python and Flask. I'm trying to deploy it to Heroku, and I followed the steps in this tutorial, including making a Procfile and requirements.txt. However, whenever I run heroku local, I get the following error:…
frogbandit
  • 561
  • 1
  • 8
  • 21
9
votes
4 answers

ModuleNotFoundError: No module named 'wsgi'

I was going to host it using Heroku. But it does not work because of the problem with the profile. This my Procfile -> web: gunicorn wsgi:app I tried these things. ->web : gunicorn wsgi.py ->web : gunicorn .wsgi --log-file- my wsgi.py…
killer whale
  • 397
  • 2
  • 8
  • 15
1
2 3
19 20