Josh Thompson     about     archive     office hours

Procfile: Run Just a Single Process

Table of Contents

Lets say you’ve got something like this in your Procfile:

web:          PORT=3000 RAILS_ENV=development bundle exec puma -C ./config/puma_development.rb -e development
devlog:       tail -f ./log/development.log
mailcatcher:  ruby -rbundler/setup -e "Bundler.clean_exec('mailcatcher', '--foreground')"%

And you want to run just the stuff in the web line.

Old Josh would have cated the procfile, and copy-pasted most of the top line into the terminal.

New Josh knows better.

$ foreman start web 

If I wanted to see just the devlog, I could do:

foreman start devlog

I knew this was possible, I just kept getting the syntax wrong. For example, I tried foreman web, foreman devlog.

Now I know. And so do you.

Additional Reading


Are you a software developer who:

And wants to do all this in the most time-efficient way possible?

Great. Punch in your email:

Of course, you don't have to be a software developer to subscribe. It's easy to unsubscribe at any point. 😉