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:
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 ...