nickstenning / honcho

Honcho: a python clone of Foreman. For managing Procfile-based applications.

Home Page:http://pypi.python.org/pypi/honcho

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PROCFILE envvar is respected only if provided on .env file

alanjds opened this issue · comments

From the docs and the lines ahead, one (like me) can understand that PROCFILE envvar is respected from any environment source, not only from .env file.

honcho/honcho/command.py

Lines 345 to 347 in a460b31

def _choose_procfile(args):
env = _read_env(args.app_root, args.env)
env_procfile = env.pop('PROCFILE', None)

The envvar PROCFILE is ignored if passed by shell environment

$ honcho --version
honcho 1.0.1
$ ls loadtest/Procfile 
loadtest/Procfile
$ PROCFILE=loadtest/Procfile honcho start
2020-07-10 11:32:32 [24851] [ERROR] Procfile does not exist or is not a file

Thank you for reporting this. It should be fixed on main and I hope to have another release out soon.