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

How to write a procfile that changes directory and respects rbenv?

Given two directories: /a and /b And /a/.ruby-version has 2.0.0-p353 And /b/.ruby-version has jruby-1.7.9 And the following /a/Procfile a: ruby --version b: sh -c 'cd /b && ruby --version' When I cd /a and run foreman run b Then I should see jruby…
Jared Beck
  • 16,796
  • 9
  • 72
  • 97
3
votes
2 answers

Problems running `foreman start` / deploying Django app to Heroku

This is what my directory structure looks like (I've included only the relevant parts): my_git_root/ ├── Procfile ├── README.md ├── requirements.txt └── my_django_project ├── app1 │   ├── admin.py │   ├── __init__.py │   ├──…
3cheesewheel
  • 9,133
  • 9
  • 39
  • 59
3
votes
1 answer

Assets under /web/bundles not found in Symfony2 production

I have deployed a Symfony2 app to Heroku with CHH heroku-buildpack-php. After pushing the code to heroku, I use 'heroku run bash' to: 1) php app/console cache:clear --env=prod 2) php app/console assets:install --symlink 3) php app/console…
slifszyc
  • 146
  • 10
2
votes
0 answers

Why does AWS Beanstalk AL2 Procfile for Passenger use puma socket?

I am migrating my ruby on rails application from AWS Beanstalk Amazon Linux 1 to their new Ruby Amazon Linux 2 (AL2). My application server is Passenger. In their instruction, the guide says to do these 2 things: In Gemfile gem 'passenger' In…
2
votes
0 answers

Debugging Heroku Procfile

I'm attempting something on Heroku that involves trying out many permutations of the procfile. Is there a way to modify the procfile directly and restart? The only way I've found in the docs is to do a full heroku git-commit-push-build cycle. That's…
baudot
  • 1,618
  • 20
  • 33
2
votes
2 answers

Building a Heroku Procfile for Java Spring Boot Gradle project

My app runs perfectly fine locally and is deployed with Heroku, but I am struggling with building a Procfile that declares what command should be executed to start the application. I'm a new developer and could use some help with how the Linux…
tkolkmeyer
  • 23
  • 3
2
votes
0 answers

How to automatically enable custom worker dynos on Heroku specified in Procfile and app.json?

I'm attempting to deploy our app using heroku review apps but we can't seem to enable the worker dynos automatically. It seems like the formation designations are being completely ignored. When I run curl -n…
2
votes
1 answer

AWS Elastic Beanstalk : How to change node command ? Container Options removed in recent update?

I had deployed a node.js application on Elastic Beanstalk recently and it gave me container options so that I could change the command to be run on startup. But in the recent update I suppose they've removed this option, now how do I configure my…
2
votes
2 answers

Heroku gunicorn deploy error: NoModuleNameError

possibly a little out my depth here, I've read the heroku docs thoroughly and still don't quite understand how the Procfile should be set up. Trying to deploy heroku ($ heroku open), gives this error log: 2020-01-27T11:39:57.597570+00:00 app[web.1]:…
pilks7
  • 63
  • 6
2
votes
1 answer

How to show stdout logs in Heroku using Flask?

In my Python 3.7.1 app I'm using Flask and deploying it to Heroku and everything works fine, except for logging to the Heroku console. I've searched for answers, and thought I found some... but alas they don't end up printing out to the Heroku Log…
AJ Tatum
  • 653
  • 2
  • 15
  • 35
2
votes
1 answer

Running several node.js scripts on Heroku

I have several .js scripts, is there a way to have them run all at the same time on the same Heroku app? My folder looks like this: **MAIN_FOLDER** Procfile script1.js script2.js script3.js script4.js script5.js …
abcd
  • 35
  • 6
2
votes
1 answer

How to use Foreman with subfolders and nested Gemfiles

I'm working on a large project with a UI, a Rails API, and some other Rails/Ruby based services located in a monorepo. I'm trying to set up some Rake tasks around Foreman at the root of the project to start up the project in development mode. The…
Matthew
  • 444
  • 1
  • 3
  • 14
2
votes
3 answers

Heroku looking for Procfile in wrong directory

I'm trying to work with Django on Heroku and I'm following this tutorial with its Django template https://devcenter.heroku.com/articles/django-app-configuration https://devcenter.heroku.com/articles/deploying-python But when i run 'heroku local web'…
Waristea
  • 55
  • 1
  • 9
2
votes
1 answer

tcp://localhost:3000:5000 (URI::InvalidURIError) when running in Procfile

Using: ruby "2.4.0" gem "rails", "5.1.0.rc1" gem "pg", "0.18.4" # postgresql database gem foreman gem "webpacker", git: "https://github.com/rails/webpacker" when I run, bundle exec foreman start -f Procfile.dev which…
user2970050
  • 307
  • 2
  • 16
2
votes
1 answer

Not able to run gradle based webapp in heroku

Below is what I tried. The below is my build.gradle /* * This build file was generated by the Gradle 'init' task. * * This generated file contains a sample Java Library project to get you started. * For more details take a look at the Java…
SiddP
  • 1,603
  • 2
  • 14
  • 36