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

Rails gem Invoker : error w Procfile : A line of your INI document could not be parsed to a LineType

I am trying to run a tuts based on a Rails app which is using the invoker gem and a Procfile to start processes ( was app and sidekiq ) I start the rails app from the console (OS X - bash) , using bundle exec invoker start Procfile --port 3000…
user762579
0
votes
1 answer

Heroku subdomains redirect

So, I have the domain api.suapraia.org that is config as a custom domain of my heroku app. But when I send a request on my new domain to a resource that is exposed on the api(api.suapraia.org /some_resource) heroku redirects to…
gbrennon
  • 899
  • 2
  • 11
  • 30
0
votes
3 answers

how to keep file handle open in c after exiting function

I am trying to read proc file /proc/stat at periodic interval but I want to avoid having to open and close the proc file each time I want to access it. I want to open the file in sort of init function, and then keep using it in some other function,…
L Lawliet
  • 2,565
  • 4
  • 26
  • 35
0
votes
1 answer

How to disable Rails web dyno on Heroku via Procfile?

I have a little doubt about Heroku procfiles and Rails. Before you ask, I'm currently using Ruby 2.1.2 and Rails 4.1.6. My project will only run Schedule Tasks via Heroku Scheduler - in other words, I don't want pay to run a website that actually…
Paladini
  • 4,522
  • 15
  • 53
  • 96
0
votes
1 answer

Installing Deployd on Heroku with Mongolab

I'm very new to Heroku and deployd. I managed to create an app and to create a mongoDBusing mongolab. I inserted the 3 files (ProcFile, server.js and package.json => see code bellow) to the root of my heroku app folder My app has application errors.…
vpx
  • 380
  • 1
  • 5
  • 14
0
votes
1 answer

Getting to PHP index page on Heroku

I created a Procfile and composer.json file. I have the procfile pointing to the correct directory. For example it will show the contents of test.html but not test.php. Here is what I have in my procfile: web: vendor/bin/heroku-php-apache2 /web/. I…
Scott Floyd
  • 76
  • 1
  • 9
0
votes
1 answer

How to start the rails console on Heroku with a multi-buildpack?

I'm deploying to heroku with the multi-buildpack on the cedar stack using a custom procfile: web: bundle exec unicorn -p $PORT -E $RACK_ENV -c ./config/unicorn.rb worker: bundle exec sidekiq -e production -C config/sidekiq.yml console: bundle exec…
RSG
  • 7,013
  • 6
  • 36
  • 51
0
votes
2 answers

Heroku No such process type web defined in procfile

When i'm runing heroku ps:scale web=1, I'm getting below error. Scaling dynos... failed No such process type web defined in Procfile. My Procfile contains below code. worker: python vot.py I also did heroku run bash and the Procfile is…
Bishan
  • 15,211
  • 52
  • 164
  • 258
0
votes
1 answer

Unicorn Procfile and development databases (Ruby on Rails 4, PostgreSQL, Heroku, Resque)

I am developing a RoR4 app using a Postgre database that does some background database processing with resque and is hosted on Heroku. My question regards running locally for development. It is my understanding (in this particular project) that when…
astronomotrous
  • 431
  • 1
  • 3
  • 12
0
votes
3 answers

How can I create a process in Bash that has zero overhead but which gives me a process ID

For those of you who know what you're talking about I apologise for butchering the way that I'm going to phrase this question. I know nothing about bash whatsoever. With that caveat out of the way, let me get out my cleaver... I am building a Rails…
Peter Nixey
  • 16,187
  • 14
  • 79
  • 133
0
votes
1 answer

Sinatra app 404's when deployed to Heroku

I am working with an app and am looking to deploy to heroku. Full source here. The primary error that I am seeing is heroku[router]: at=info method=GET path="/" host=cheesyparts.herokuapp.com request_id=25d2dbb5-e13a-4146-bb3a-9386f997c44c…
Sam
  • 185
  • 2
  • 9
0
votes
1 answer

When I run "Heroku ps" I am not on unicorn but on the standard

Running Heroku ps is not giving me the expected outcome of bundle exec unicorn -p $PORT -c ./config/unicorn.rb but the regular bin/rails server -p $PORT -e $RAILS_ENV, despite my having a Procfile with the following: web: bundle exec unicorn -p…
maudulus
  • 10,627
  • 10
  • 78
  • 117
0
votes
1 answer

Recap Procfile with Passenger for Rails 4 App

I am trying to use Recap for deploying my Rails 4 app with Capistrano. In the docs, it says: The ruby recipe [...] includes foreman support, starting and restarting processes defined in a Procfile. My app needs two processes to be restarted each…
Teddy Widom
  • 356
  • 1
  • 3
  • 11
0
votes
1 answer

Difficult time using Mezzanine on Heroku - issues with Procfile and dictionary Value Error

Using the following tutorials and github templates here, here, and here , I've spent the better part of the evening wrestling with django and mezzanine. Right now I've got a mezzanine-project, called uccdev which is working nicely when I run python…
gersande
  • 465
  • 1
  • 8
  • 25
0
votes
0 answers

Why is foreman ignoring the .env in Java using Heroku

I created .env file at the root of my project with the MONGOHQ_URL in it but after launching foreman (foreman start), I'm still getting null as a value in Java using System.getenv("MONGOHQ_URL"). Anything im doing wrong? Documentation seemed…
Rafael
  • 1
  • 1