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
9
votes
2 answers

django deploying separate web & api endpoints on heroku

I have a web application with an associated API and database. I'd like to use the same Django models in the API, but have it served separately by different processes so I can scale it independently. I also don't need the API to serve static…
lollercoaster
  • 15,969
  • 35
  • 115
  • 173
8
votes
1 answer

Sinatra error (bundler: failed to load command: rackup)

When deploying a modular Sinatra app to Heroku, I keep getting this error: bundler: failed to load command: rackup (/app/vendor/bundle/ruby/2.4.0/bin/rackup) I've tried tweaking my config.ru and my Procfile, without success. Here are the contents of…
fullstackplus
  • 1,061
  • 3
  • 17
  • 31
8
votes
2 answers

Heroku, Java, Procfile, Could not find or load main class

I'm using heroku with maven to run a server. My goal is to have heroku run the java class server.class as a web dyno. How would I write a procfile to execute the java program server.class as web? My current Procfile web: java -cp $JAVA_OPTS…
dyatesdude
  • 215
  • 1
  • 3
  • 6
8
votes
2 answers

Is it possible to have a Procfile and a manage.py file in a different folder level?

Introduction: I am following the Getting Started with Django on Heroku quick start guide. I intend to apply the Two Scoops of Django book philosophy about working with virtualenvs and projects. Audrey Roy and Daniel Greenfeld (authors) like to put…
oubiga
  • 193
  • 3
  • 12
7
votes
1 answer

How to write multi-line command in heroku procfile

I have a long command line in heroku procfile and want to break it into multiple lines. Using backslash like below didn't help... Procfile: web: java -Dserver.port=$PORT\ -Djavax.net.ssl.keyStoreType=pkcs12\ …
7
votes
2 answers

Foreman start multiple processes?

I have three processes defined in my Procfile. Sometimes, I only want to run two of them. Is there a command for that? $ foreman start process_1 process_2 ERROR: "foreman start" was called with arguments ["process_1", "process_2"] Usage: "foreman…
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
7
votes
2 answers

What is a Procfile-based application

I have seen enough of its appearance that I have to understand more about it. I see that Heroku has a procfile and I assume it's about running this procfile after it deployed to heroku. I also see the term procfiled-based application. So actually…
Chris Yeung
  • 2,613
  • 6
  • 34
  • 57
7
votes
1 answer

Flask logging with Foreman

I'm trying to set up a Heroku-ready Flask app, but I can't figure out how to turn on logging. Without Foreman, I could create a helloworld app as described in the Flask tutorial: from flask import Flask app = Flask(__name__) @app.route("/") def…
Yarin
  • 173,523
  • 149
  • 402
  • 512
7
votes
1 answer

Use Foreman to Start Rack App Located in Different Directory

I have a Procfile setup that is running a number of processes successfully: # /Procfile redis: bundle exec redis-server sidekiq: bundle exec sidekiq -v -C ./config.yml forward: forward 4567 mock-api I need to add one more process - a Sinatra app…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
6
votes
0 answers

Could not find a pom.xml file! Please check that it exists and is committed to Git

This is the folder structure of my project: - Root-folder .git projecname Procfile pom.xml This is the Procfile configure: web: java $JAVA_OPTS -jar target/dependency/webapp-runner.jar --port $PORT --proxy-base-url…
Hung Bang Quan
  • 151
  • 2
  • 9
6
votes
4 answers

I've made a correct Procfile but I dont see a worker dyno in the dashboard

Im trying to deploy a very simple bot to heroku but I cant set the worker dyno because it doesnt show up on the dashboard, even though I have a Procfile with just one line it: worker: node app.js
Officer Vimes
  • 95
  • 1
  • 9
6
votes
1 answer

Aws Elasticbean doesn't run my .jar application

After upload and deploy on aws, the .jar file hadn't started. So the static contents are being served, and nginx is being reconfigured (by custom configs) but the jar file (Which was in root of .zip I've uploaded) was not run after deployment so I…
5
votes
2 answers

What should go in my Procfile for a Django application?

What should go in my Procfile for a Django application on Heroku? I tried: web: python appname.py because I found an example like that for python apps. Further searching didn't make things any clearer except for that I might need to use gunicorn…
VaultDweller
  • 127
  • 1
  • 8
5
votes
2 answers

How to use rails server and bot with procfile and foreman?

I am trying to run my rails server and slackbot in two processes using Procfile and gem 'foreman'. But when I use foreman start the bot is only running the server is not starting up. I tried removing the line bot and tried to run web only but in…
Amal
  • 212
  • 2
  • 9
5
votes
1 answer

How do I run two processes in Procfile?

I have a Flask app where I have embedded a Bokeh server graph and I am not being able to have them both working on Heroku. I am trying to deploy on Heorku and I can either start the Bokeh app or the Flask app from the Procfile, but not both at the…
multigoodverse
  • 7,638
  • 19
  • 64
  • 106
1
2
3
19 20