Book Image

Heroku Cloud Application Development

By : Anubhav Hanjura
Book Image

Heroku Cloud Application Development

By: Anubhav Hanjura

Overview of this book

Table of Contents (17 chapters)
Heroku Cloud Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 different physical locations. Each dyno is fully isolated, starts up with a clean copy of the application's ephemeral filesystem, and the entire dyno (including the process, memory, and filesystem) is discarded when the process launched by the command exits or is terminated.