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
3
votes
1 answer

Django on AWS elastic beanstalk: failed to generate rsyslog file with error Procfile could not be parsed

I am trying to add a custom Procfile to my Django elastic beanstalk environment but I am receiving the following error during the deploy: 022/06/02 08:14:22.827519 [INFO] Generating rsyslog config from Procfile 2022/06/02 08:14:22.827557 [ERROR]…
Salvatore Avanzo
  • 2,656
  • 1
  • 21
  • 30
3
votes
3 answers

No Procfile and no package.json file found in Current Directory - See run-foreman.js

I am trying to deploy a django app to heroku, and it is causing me errors. In the process of debugging when I run the command heroku local web -f Procfile.windows it shows me the following error: [FAIL] No Procfile and no package.json file found in…
Shpend Palushi
  • 597
  • 8
  • 21
3
votes
1 answer

Heroku workers crashing in laravel app if number of workers > 1

I've been using Heroku to host my application for several years and just started running into issues with the worker queue getting backlogged. I was hoping I could fix this by increasing the number of workers running so queued jobs could be…
BrandonO
  • 231
  • 2
  • 10
3
votes
1 answer

heroku procfile problem : ModuleNotFoundError: No module named 'myApp.wsgi'

I' m deploying my first django app on heroku. After deploy the heroku doesn't launch my app. After checking heroku logs --tail I have got an error: : ModuleNotFoundError: No module named 'tabele.wsgi' My procfile looks like: web: gunicorn…
user13137381
  • 115
  • 3
  • 12
3
votes
1 answer

Procfile Error Deploying Rails API with Dokku

I am currently trying to deploy my Rails API on Dokku, I keep running into this error where it says "Proc entrypoint [procname] does not exist. Please check your Procfile". I'm not sure what the issue is and how to set up an entrypoint, I've tried…
AngeloS
  • 186
  • 1
  • 3
  • 17
3
votes
1 answer

Heroku: How to auto start Python app on deploy?

I've got a Heroku app which automatically deploys when I'm pushing changes to GitHub. It's a Discord Bot (written in python). Now I want to automatically start this python script when I'm going to deploy (It should run 24/7 until it's stopped by a…
Spinne
  • 65
  • 1
  • 5
3
votes
1 answer

Heroku Python Worker ProcFile

I have a worker that I would like to run in heroku that is in the following directory: project -------worker -------------worker.py procfile my procfile is in the root directory no problem and it runs my flask app correctly, but I've tried a few…
Simon Nicholls
  • 635
  • 1
  • 9
  • 31
3
votes
1 answer

How do I create my procfile file for heroku?

I'm trying to use Heroku with Java, I have this directory structure and I'm using IntelliJ: target com x y Main.java in the procfile: web: java -cp target/classes/;target/dependency/* com.x.y.Main When I try heroku local web I get…
Ali Bdeir
  • 4,151
  • 10
  • 57
  • 117
3
votes
1 answer

Environment variables not available in Elastic Beanstalk Procfile

I'm attempting to configure my elastic beanstalk java application using environment variables via the Procfile like so: web: ./bin/myservice -Dhttp.port=$PORT The PORT environment variable is set via the AWS ui in the "Software Configuration"…
novon
  • 973
  • 3
  • 15
  • 30
3
votes
1 answer

What does ${PORT:-3000} mean in Heroku Procfile?

Heroku suggests this Procfile command to start Puma on Rails 5 setup: web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development} At first I thought 3000 was a default value, but in fact foreman uses port 5000 if PORT is missing in…
João Souza
  • 4,032
  • 3
  • 25
  • 38
3
votes
1 answer

How to configure procfile, sidekiq.yml so that different sidekiq queues run on different dynos in heroku?

I have 2 kinds of queues in Sidekiq: "default/low" - to cater web requests and "background_queue" - to run background processes like fetching tweets. I want to run "background_queue" workers on a different dyno, so that it doesn't block any web…
viveksura
  • 125
  • 1
  • 8
3
votes
5 answers

Heroku web: npm ERR! missing script: start

Heroku web is throwing error :npm ERR! missing script: start However, when I run it locally: heroku local web it works fine. Project is successfully build. I have set start script in my package.json as: "scripts": { "start": "node server" …
nitte93
  • 1,820
  • 3
  • 26
  • 42
3
votes
4 answers

Specifying a default port in a Procfile

I am using foreman to start a bunch of services, and have the following line in the Procfile. web: bundle exec rails server -p ${PORT:-3000} yet when the server starts it starts on the default Foreman port of 5000, so it looks like the syntax…
Dave Sag
  • 13,266
  • 14
  • 86
  • 134
3
votes
2 answers

Brand new Luminus app giving Error: Could not find or load main class clojure.main

I just created a Luminus app by running: lein new luminus foobar and when I try to run it with foreman like this: foreman start the way the docs describe, I get this error: Error: Could not find or load main class clojure.main which is also the…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
3
votes
2 answers

Ruppell's socket on Heroku crashes when running ruby script (permission denied)

I'm trying to make a simple tcp/ip server run on Heroku (along with my Ruby on Rails app). I've added the Ruppels socket addon and installed socket-connect submodule as described in this tutorial. I added the following line in my Procfile: web:…
bjarkig82
  • 558
  • 4
  • 13