Restarting Services / Running One-Off Tasks

Restarting Dokku Apps

Restarting all of the app's containers (processes):

dokku ps:restart my-app

Restarting a specific app containers (process):

dokku ps:restart my-app worker

Running One-Off Tasks

If you need to run a command such as a database migration:

# Ruby on Rails example
dokku run my-app rake db:migrate

Dokku Reference