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

Private Pub on Heroku | Rails 3

I'm having some trouble understanding which port the private_pub gem uses on heroku. Everything works locally, and I can start up the extra dyno on heroku. I figure there has to be a way to set this dynamically. My Procfile pubsub: bundle exec…
2
votes
1 answer

Heroku Procfile for WordPress blog

I'm setting up a WordPress blog on Heroku. When I run foreman start to run the site locally, I get an error about a missing Procfile. I've written Procfiles for Python web apps, but I'm on unfamiliar ground with PHP. What should go in a Procfile…
Julian A.
  • 10,928
  • 16
  • 67
  • 107
1
vote
1 answer

Deploying Sylius on Heroku - Routing not correct

I am trying to deploy Sylius to Heroku. I have had many attempts but all have been unsuccessful. I am following this guide: https://dev.to/aaahmedaa/deploy-sylius-to-heroku-55p1 This is the repo I am trying to deploy:…
ivantxo
  • 719
  • 5
  • 18
  • 36
1
vote
0 answers

Couldn't find that process type (web) - Procfile issue?

When I run "heroku ps:scale web=1" I get this error: Couldn't find that process type (web). My procfile is capitalized, it doesn't have any extensions, and it has this line in it: web:gunicorn app:app I've tried adding a space after web but no luck,…
1
vote
0 answers

How do you change the colors of the output when running bin/dev with foreman via a Procfile in Rails 7?

I'm running Rails 7 via foreman with a Procfile with the bin/dev command. The Procfile looks very simple: web: bin/rails s js: yarn run:js css: yarn run:css You can see the outputted colors below: I was wondering how do I define and change these…
CafeHey
  • 5,699
  • 19
  • 82
  • 145
1
vote
0 answers

Custom Procfile for Review Apps in Heroku

Is it possible to use a custom Procfile, different from the one used in production/staging, for Review Apps in Heroku? How? So far all of my searching yielded nothing.
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
1
vote
0 answers

How to use gunicorn django and procfile with nested dirs?

The project structure goes like back\ |anwis\ | |anwis\ | |... | |wsgi.py |dg.sqlite3 |manage.py |... |venv\ | |... |Procfile |... In that Procfile i tried various things like web: gunicorn anwis.wsgi or web: gunicorn…
1
vote
0 answers

Can't change dyno with Procfile on Heroku

I'm trying to deploy django project to Heroku using docker image. My Procfile contains command: web: gunicoron myProject.wsgi But when I push and release to heroku - somewhy dyno process command according to a dashboard is web: python3 Command…
Kereell
  • 69
  • 7
1
vote
1 answer

environment variable issue with procfile heroku

I am doing a Heroku tutorial and web: python manage.py runserver 0.0.0.0:$PORT creates the error when I run heroku local or heroku local -p 5000 (or one of several more variants). However, web: python manage.py runserver 0.0.0.0:5000 works fine. I…
riemann_lebesgue
  • 299
  • 5
  • 17
1
vote
2 answers

Every URL is showing me "/" (index) with Heroku

I just finished my first MVC project with PHP and MySQL. I created a router that allows me to when I visit an URL, call a function that render the expected file. I'm doing it with lampp's PHP and MySQL, but not using Apache, otherwise I'm using the…
1
vote
0 answers

Multiple cors allowed origin in Procfile

I have a mercure hub written in go and a Procfile at the root of the project. In this Procfile I have a flag: --cors-allowed-origins='https://mydomain-yes801.app' It works very well with one domain, But If I want to change my cors with a regex or…
Vico-gs
  • 41
  • 2
1
vote
1 answer

Heroku CI Timeout

I am having a problem with Heroku CI on a rails application. I just upgraded to Rails 7.0.1 Previous version was Rails 6.1.4.4 # Ferrum::TimeoutError: # Timed out waiting for response. It's possible that this happened because something took…
MZaragoza
  • 10,108
  • 9
  • 71
  • 116
1
vote
1 answer

What exactly should the path to jar in Procfile be for spring boot?

I am trying to deploy a spring boot application to heroku. (Also using a JawsDB MySQL addon). After I push to git, and also to heroku (git push heroku mybranch:master), and build is always successful, I always get an error: at=error code=H14…
1
vote
1 answer

How to indicate in Procfile that app.py is in a different folder?

I was wondering if it is possible/necessary to indicate in the Procfile that app.py is in another directory. For example, my directory is like this: root │ Procfile | └───backend │ │ app.py Should the Procfile be web: gunicorn app:app like…
b d
  • 19
  • 1
1
vote
0 answers

Heroku: db upgrade in Procfile avoids deploying to new dynos

Scenario I have a Python Flask app with a Postgres DB which I would like to deploy to multiple apps on Heroku. My Procfile assures that my database migrations are done after every build with release: flask db upgrade. I would like to automate the…
Thomas
  • 11
  • 2