Foreman Procfile for dev & prod environments -


is there way have foreman conditionally start processes in procfile? foreman run both web , worker process in production in dev environment need web process.

production:

web: gunicorn myapp.wsgi:application worker: python worker.py 

development:

web: gunicorn myapp.wsgi:application 

create alternate procfile , use start foreman.

$ cat procfile.local web: gunicorn myapp.wsgi:application  $ cat procfile web: gunicorn myapp.wsgi:application worker: python worker.py  $ foreman start --procfile procfile.local 

if using git add file .gitignore file stays local.

$ cat .gitignore | egrep local .local