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

Heroku app runs locally but crushes remotely

Just studying so thanks in advance for understanding. I built some training Java SpringBoot project. It's a simple websocket chat, but that's no matter. It successfully runs locally via Eclipse or Maven (with no Eclipse). Now my task is to run it…
Victor
  • 23
  • 6
0
votes
0 answers

Chain 2 backgrounded bash commands on 1 Heroku Dyno using Procfile

This Heroku Help page suggests I can run multiple commands backgrounded, followed by wait -n, in my Procfile. Their example: web: puma -C config/puma.rb & sidekiq & wait -n In my example, the commands I want to run are in different directories, so…
Aaron Brager
  • 65,323
  • 19
  • 161
  • 287
0
votes
1 answer

Springboot 2 RESTful application deployed to heroku using Procfile

I've tried numerous configurations to deploy my Restful Springboot 2 app to heroku using a procfile to no avail. I've tried several of the suggestions/solutions here. Procfile: web: java $JAVA_OPTS -Dspring.profiles.active=stage -cp…
user188606
  • 23
  • 1
  • 5
0
votes
1 answer

Why do I need a procfile for my heroku flask app but I didn't need a procfile for my heroku express.js or rails apps?

I've previously deployed apps on heroku written in Rails and in Express.js, and never come across the concept of a Procfile before. Now that I've just gone to deploy a Flask app, I discovered this Procfile concept and found that the app would not…
temporary_user_name
  • 35,956
  • 47
  • 141
  • 220
0
votes
0 answers

Heroku - Run python in folder in the Procfile

This is a very simple question, but I can't seem to manage to do it. I have created a python server script that we will call server_main.py. On GitHub, it is stored in a folder which we will call A. I tried putting the script in the master branch…
FireGreeks
  • 83
  • 1
  • 11
0
votes
1 answer

What to write in the Procfile?

What to write in the Procfile? Im writing a web app using maven to make .war packaging. It works on my localhost just fine when I use Tomcat to make Artifact filmography2:war exploded However, when i want to deploy it in heroku, I have no idea what…
0
votes
1 answer

Deploying both Flask app and Node.js app to heroku one git repo

I have a repository and I want to deploy two application from it. I have it set up as two different applications in Heroku. Im using a Procfile to load the Flask application and it deploys properly however when the Node application deploys it also…
SwimMaster
  • 351
  • 3
  • 17
0
votes
0 answers

Flask Heroku Correct Procfile

I'm trying to use Heroku to push my Flask app to the web. I think I have everything down, except the Procfile. Here is what my file directory looks like: My main.py is: from application import app My init.py is: from flask import Flask from config…
Evan
  • 1,892
  • 2
  • 19
  • 40
0
votes
1 answer

How to edit Procfile in Heroku when using heroku war:deploy myapp.war

I'm trying to edit the Procfile in Heroku, however it seems like you can't edit it when using the command heroku war:deploy myapp.war to deploy the war file. Any suggestion on how i can either edit this, or run another shell script in web…
TTD
  • 301
  • 1
  • 7
0
votes
1 answer

Ruby-Heroku how to create procfile

i am trying heroku for my hobyst app. i deployed my app. but idk what is procfile or anything. i saw 'web:' like thats things but i didnt. Im starting my app with pry. have in my gemfile. my console line: c:> pry -r ./filelocation/app.rb [1]…
ahmet gül
  • 67
  • 2
  • 10
0
votes
1 answer

Heroku Procfile not going into directories?

This is my file structure: requirements.txt Procfile Chess/ -- lichess-bot/ -- lichess-bot.py -- config.yml -- (many other files related to lichess-bot.py) The part responsible to…
Moha369
  • 815
  • 7
  • 16
0
votes
0 answers

Gradle Android Studio App writing the procfile for Heroku

I'm trying to deploy the app to heroku, but in order to do that I need to declare a process type through the procfile in heroku. I researched the procfile but have no idea how to get the right command for my java gradle android studio app as I'm not…
0
votes
1 answer

Starting more than one (background worker) process in a production environment on CloudFoundry

I have a RoR application and deploy it to CloudFoundry. Together with the application itself I want to start a Resque scheduler and a couple of workers. I tried various szenarios: Procfile: Multiple processes supported from v3, which is…
Günther
  • 33
  • 6
0
votes
2 answers

Python Heroku app has 0 web dynos despite right Procfile and at right location

I deployed python app successfully but when I open the app it is showing me: Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this…
0
votes
1 answer

Web process failed to bind to $PORT

I have a react project bootstrapped using the CRA Cli. I have travis for CI and deploying on Heroku. The project has been running for about a month now. The last build was about 25 days ago and it passed. Today, when I visit this app, it is…
Siya Mzam
  • 4,655
  • 1
  • 26
  • 44