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

How to filter (grep) output of a process in Procfile?

I have a Procfile which looks like that: electron: ./node_modules/.bin/electron . I would like to remove all the lines whith _rawLocationToUILocation from the output. I've tried the following: electron: sh -c './node_modules/.bin/electron . 2>&1 |…
vmarquet
  • 2,384
  • 3
  • 25
  • 39
0
votes
1 answer

SyntaxError: Unexpected token < in JSON at position 0 - React app in Rails API

I'm working on a Rails 5.0.6 as an API. I am also running a React application for the front end running on a node server version v9.8.0. On the React app which is running on localhost:3000 I get the following error: The rails is used as an API so in…
Steven Aguilar
  • 3,107
  • 5
  • 39
  • 89
0
votes
1 answer

ruby and heroku procfile for web app

I'm looking to fully understand the Procfile solution I found here on stack overflow. Essentially, I don't mind copying and pasting code, but I also want to understand it. Any additional resources are super welcomed! I've copied my Procfile…
antonio_zeus
  • 477
  • 2
  • 11
  • 21
0
votes
1 answer

How to ping "worker" type of app in Heroku?

I've made a Heroku NodeJS app. At first time, it had "web" type of app. I setup New Relic so the app won't shutdown. New Relic pings the app by https protocol. I changed the app to "worker" type, then New Relic responded with 503 status code, so…
Kenya-West
  • 392
  • 2
  • 18
0
votes
1 answer

Procfile for Heroku Java EE

I'm trying to deploy my Java EE backend application on Heroku, but I'm not sure what I need to put in my Procfile. I am following the tutorial, but when I try to deploy (locally) with : heroku local or heroku local web it fails. I tried web: java…
Dennis van Opstal
  • 1,294
  • 1
  • 22
  • 44
0
votes
1 answer

Heroku: How to open rails api dyno on port 3001

Here is my procfile: web: cd client && npm start api: bundle exec rails s -p 3001 The web app works perfectly and runs on port 80 (see here: https://trucktrack-demo.herokuapp.com/) However I cannot seem to find the port that the rails api is…
Menachem Hornbacher
  • 2,080
  • 2
  • 24
  • 36
0
votes
0 answers

Basic Java Web App From Bitbucket to Heroku Procfile Issue

I am just trying to learn how bitbucket and heroku works together. I created basic maven web app in java which includes just index.jsp page "hello world" in it. Then turned into git repo and push to bitbucket and heroku. The problem is when i open…
Erkan Erkişi
  • 159
  • 5
  • 13
0
votes
1 answer

Heroku Procfile with web process type

I am deploying a create-react-app which uses an Express server to do some server-side rendering. I am using the cra buildpack: https://github.com/mars/create-react-app-buildpack and a Procfile with a web process type. I'm not sure exactly when web…
Gurnzbot
  • 3,742
  • 7
  • 36
  • 55
0
votes
0 answers

Setting custom process as Heroku web process type

I have a git repository with two applications. One backend API, the other client-side application. In my root Procfile, I have this: api: cd apps/api && mix phx.server clientside: cd apps/clientside && mix phx.server However Heroku complains that…
Sergio Tapia
  • 9,173
  • 12
  • 35
  • 59
0
votes
2 answers

Java: Scaling dynos error JSP Heroku

I am trying to deploy my jsp web application on heroku, followed all the step from the documentation, I am using webapp-runner, I created Procfile in the root of my project with contents web: java $JAVA_OPTS -jar…
Ashvin Sharma
  • 563
  • 1
  • 5
  • 24
0
votes
0 answers

Running Django locally with heroku fails due to missing Procfile

I have a Django 1.11/Python 3.5 app that I built and want to run on Heroku locally. It's a simple SPA using the Heroku Django template provided on GitHub (https://github.com/heroku/heroku-django-template). I followed a Heroku tutorial…
Grant Bartel
  • 363
  • 1
  • 3
  • 21
0
votes
0 answers

How should is a procfile made?

I have made a project named mysite with django i cloned it to a directory named tes the directory is as followed. As you can see the procfile is in correct directory. test ├── blog ├── db.sqlite3 ├── manage.py ├── mysite │   ├── __init__.py │   ├──…
Vidhyanshu jain
  • 341
  • 1
  • 4
  • 16
0
votes
1 answer

Deploying webapp and worker to Heroku from github

I have a web app which I setup the continuous deployment from github. However I'm planning to add some worker roles to this app and I'm wondering couple of things. I'm using Node.js. In my mind, I had the design like: Procfile would have the # of…
Mavi Domates
  • 4,262
  • 2
  • 26
  • 45
0
votes
1 answer

Heroku - Multiple Process Types in a single procfile

In heroku, if one has the following on a Heroku dyno's procfile (say hobby tier), does that mean they are charged for two dynos? Or is it running on one Dyno sharing the resources of said dyno? web: node ./bin/www worker: node ./bin/background.js
Frank V
  • 25,141
  • 34
  • 106
  • 144
0
votes
1 answer

How can I start a Procfile process, after the rails server has completely started up with foreman?

I have a rails app that runs on parallel with a ruby script. This is script is a ruby-mqtt subscriber, basically it listens for messages over the mqtt protocol and then interacts with the rails app. The problem is that foreman starts this process…
Jorge Cuevas
  • 755
  • 3
  • 10
  • 30