Check out example codes for "heroku restart rails server". It will help you in understanding the concepts better.

Code Example 1

heroku ps:restart web -a <my app name>

Code Example 2

heroku restart -a app_name

# The -a is the same as --app

Learn ReactJs, React Native from akashmittal.com