Running a one-off process

Heroku's process architecture enables you to run a group of processes (process formation) or a standalone one-off process. On your local machine, you can cd into a directory with your app, then type a command to run a process. On Heroku's Cedar stack, you can use heroku run to launch a process against your deployed app's code on Heroku's dyno manifold.

To run the date command on Heroku as a standalone dyno, type the code as shown in the following screenshot:

Running a one-off process

The command displays the date on the terminal by running a standalone dyno with process ID 2963. Each of these commands is run on a fresh, stand-alone dyno running in ...

Get Heroku Cloud Application Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.