Questions tagged [foreman]

Foreman is a manager for Procfile-based applications. Its aim is to abstract away the details of the Procfile format, and allow you to either run your application directly or export it to some other process management format.

461 questions
75
votes
4 answers

Foreman: Use different Procfile in development and production

I have a homemade Sinatra application for which I intend to use Heroku to host it. I use foreman and shotgun in development, with the following Procfile: web: shotgun config.ru -s thin -o 0.0.0.0 -p $PORT -E $RACK_ENV It works great with both…
Arnaud Leymet
  • 5,995
  • 4
  • 35
  • 51
54
votes
6 answers

foreman only shows line with “started with pid #” and nothing else

When I run foreman I get the following: > foreman start 16:47:56 web.1 | started with pid 27122 Only if I stop it (via ctrl-c) it shows me what is missing: ^CSIGINT received 16:49:26 system | sending SIGTERM to all processes 16:49:26 web.1…
ijverig
  • 2,795
  • 3
  • 18
  • 26
50
votes
2 answers

Is there a comment character for foreman's .env file?

Can you comment out lines in a .env file read by foreman?
GreenAsJade
  • 14,459
  • 11
  • 63
  • 98
45
votes
10 answers

django setting environment variables in unittest tests

I want to be able to set environment variables in my Django app for tests to be able to run. For instance, my views rely on several API keys. There are ways to override settings during testing, but I don't want them defined in settings.py as that is…
lollercoaster
  • 15,969
  • 35
  • 115
  • 173
41
votes
4 answers

Can't start foreman in Heroku Tutorial using Python

I have been attempting to complete this tutorial, but have run into a problem with the foreman start line. I am using a windows 7, 64 bit machine and am attempting to do this in the git bash terminal provided by the Heroku Toolbelt. When I enter…
user1167662
  • 1,245
  • 3
  • 16
  • 25
34
votes
10 answers

Killing MailCatcher: Something's using port 1025

I'm trying to run "foreman start" for a rails app however this error message is preventing me from running the foreman properly: ~~> ERROR: Something's using port 1025. Are you already running MailCatcher? I've tried killing the PID, going to…
CJ -S
  • 353
  • 1
  • 3
  • 6
34
votes
3 answers

How to load environment variables in the Rails console?

I think this is a little, easy question! I'm using .env file to keep all my environment variables, and i'm using foreman. Unfortunately, these environment variables are not being loaded when running rails console rails c so, i'm now loading them…
M.ElSaka
  • 1,264
  • 13
  • 20
26
votes
3 answers

Procfile start processes in their own working directory

I have this simple Procfile web: myapp myapp is in the path, but the processes home directory should be ./directory/. How can I specify in the Procfile where the process is to be started? https://github.com/ddollar/foreman/pull/101 doesn't help…
JohnDoe
  • 2,422
  • 5
  • 29
  • 44
23
votes
1 answer

Why does Foreman not output some things until I press Control-C?

I just got into rails programming and it looks like there are two programs I can use to run my project locally: rackup and foreman. One difference I noticed is that foreman will not output some things that I would expect to see and I would see if I…
neuromancer
  • 53,769
  • 78
  • 166
  • 223
21
votes
6 answers

Can I tell foreman to reload the web app every time a request is made so I can develop decently?

A web app I am writing in JavaScript using node.js. I use Foreman, but I don't want to manually restart the server every time I change my code. Can I tell Foreman to reload the entire web app before handling an HTTP request (i.e. restart the node…
user142019
20
votes
6 answers

Gunicorn Connection in Use: ('0.0.0.0', 5000)

I installed redis this afternoon and it caused a few errors, so I uninstalled it but this error is persisting when I launch the app with foreman start. Any ideas on a fix? foreman start 22:46:26 web.1 | started with pid 1727 22:46:26 web.1 |…
Craig Cannon
  • 1,449
  • 2
  • 13
  • 20
19
votes
4 answers

Heroku procfile "No such process type web defined in Procfile" error

This is the first time I've used Heroku, and the fact that I can't find anyone in Google with a similar error to this means I'm likely doing something way wrong: I'm following the basic Heroku setup guide here to get my NodeJS application deployed…
JVG
  • 20,198
  • 47
  • 132
  • 210
19
votes
4 answers

foreman development vs production (rails)

what is the "foreman way" for behaving differently in production vs development? That is we want foreman start to start up a bunch of stuff in dev, however in heroku production we don't need it to start (for example) solr.
phil swenson
  • 8,564
  • 20
  • 74
  • 99
19
votes
1 answer

How to use foreman to export to upstart?

I am trying to export my application to another process management format/system (specifically, upstart). In doing so, I have come across a number of roadblocks, mostly due to lacking documentation. As a non-root user, I ran the following command…
user664833
  • 18,397
  • 19
  • 91
  • 140
18
votes
5 answers

Foreman installed by heroku toolbelt on windows can't be found

I simply followed the getting started with nodejs tutorial from Heroku. https://devcenter.heroku.com/articles/getting-started-with-nodejs#declare-process-types-with-procfile But I get an error at the part "declare process types with procfile" My…
Nextar
  • 1,088
  • 2
  • 12
  • 26
1
2 3
30 31