restart heroku web dyno in python code example Example: heroku restart rails server heroku restart -a app_name # The -a is the same as --app