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

Django-twoscoops-project (skeleton) on Heroku via Gunicorn. How to set Procfile?

I'm trying to run the twoscoopsofdjango skeleton on Heroku via Gunicorn. Here is the file tree from the root of the project (left out a few unimportant folders for readability): . ├── LICENSE.txt ├── my_project │   ├── manage.py │   ├──…
Bentley4
  • 10,678
  • 25
  • 83
  • 134
0
votes
3 answers

heroku django webserver failed

I use Procfile with web: python manage.py runserver '0.0.0.0:$PORT' first time it started successfully, but after first git push it crashed with this error: OperationalError at / could not connect to server: Connection refused Is the server…
boldnik
  • 2,547
  • 2
  • 27
  • 32
0
votes
1 answer

Rails app using Thin and SSL on Heroku (Procfile)

I have been having some issues with running a Rails app using the Thin web server over SSL on Heroku. One thing that I think may be causing my issues is that I am not starting the thin server using ssl (such as shown here and here). However, I do…
diasks2
  • 2,033
  • 2
  • 36
  • 61
0
votes
2 answers

How do I properly shutdown and dump a Redis server with Foreman?

I have a Procfile that I use with Foreman to start my local redis and webrick server: web: bundle exec rails server -p $PORT redis: redis-server config/redis.development.conf I connect to Redis using a named socket that is defined in the…
Martin Sojka
  • 523
  • 5
  • 18
0
votes
1 answer

Trouble reading to the end of a procfile

I am having trouble reading a proc file that is larger than the buffer. I have looked at these 2 questions and I think I am missing something. Am I using the buffer_location pointer incorrectly? How can I read large data from proc file? how read to…
whwright
  • 531
  • 2
  • 7
  • 21
0
votes
1 answer

Failed to bind to $PORT when trying to deploy Python/flask app to Heroku

I'm trying for the first time to remotely deploy my Python flask web app on Heroku and of course I'm encountering some problems. My python code looks like this: # server settings HOST = '127.0.0.1' PORT = int(os.environ.get('PORT', 5000)) DEBUG_MODE…
user2697881
  • 93
  • 2
  • 13
0
votes
1 answer

How do I declare process type with Procfile?

I am trying to build an app using Django & Heroku. I am following the steps found in this tutorial: https://devcenter.heroku.com/articles/django Here are my steps: mkdir hellodjango && cd hellodjango virtualenv venv --distribute source…
user2161725
  • 667
  • 2
  • 7
  • 12
0
votes
0 answers

Execution of a Play application deployed on heroku from Bamboo: Why Application Error?

I deployed a Play application! from Bamboo on Heroku, the deployement is normally and I can find my application on my Heroku account. the problem is that when I run my application: it gives me: Application Error An error occurred in the your page…
Momog
  • 567
  • 7
  • 27
0
votes
1 answer

Heroku one request spawns two responses that crashes my app

In my Heroku Django app, for the user account registration flow, there is a typical request activate account that happens when the user receives an email with a special "activate" URL. In the app, this activation should happen only once. The only…
André Staltz
  • 13,304
  • 9
  • 48
  • 58
0
votes
1 answer

Getting “Procfile declares types -> (none)” in Heroku as an error when I deploy

am trying to deploy a test app to Heroku but every time I do my Procfile is being ignored. It should be saying this: Procfile declares types -> web But says this Procfile declares types -> (none) Because of this problem it of course won't load…
0
votes
1 answer

Ignoring unregister_worker in resque

My rails app consists of an API server and an Admin server. Both make use of resque jobs. In my local development environment each of them have a Procfile and are using the same redis server. The problem I have is that I cannot control which server…
Stan Wiechers
  • 1,962
  • 27
  • 45
0
votes
1 answer

Heroku - Binary only buildack?

I'm attempting to upload a Play! 2.1 Project to Heroku, however the build keeps timing out after 15 minutes. (During the javascript minification/uglification stage). Plan B is to simply compile it ourselves locally (play dist) and upload the…
James Davies
  • 9,602
  • 5
  • 38
  • 42
0
votes
1 answer

Getting error while running command heroku ps:scale worker=1 error

I tried a lot but not able to find the reason for this. Need help. Following is what I am writing after deploying my first node app in Heroku and my DB is at MongoLab heroku ps:scale worker=1 It is giving me following error. ! No such type as…
Maulik Suchak
  • 1,028
  • 1
  • 8
  • 23
0
votes
0 answers

procfile for heroku and development

I am little confused on the usage of the Procfile on development in local machine and in heroku In order to start rails in my local machine I need web: bundle exec rails server -p $PORT worker: bundle exec rake jobs:work which works when I use…
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
-1
votes
1 answer

Procfile working locally but not in heroku CLI

So I am trying to make my procfile for Heroku CLI but I don't think Heroku is recognizing it because when I do $ git push heroku main the Procfile doesn't work rather it does npm start rather than what's written in the Procfile but it works when I…
Arya
  • 1
  • 1
1 2 3
19
20