Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the proper command to restart a Dokku app from SSH?

A Rails app I deployed on DigitalOcean using Dokku crashed and started returning 500 errors.

How can I restart it without pushing an empty commit?

like image 950
Spone Avatar asked Jan 21 '14 00:01

Spone


People also ask

How do I restart dokku app?

An app may be restarted using the ps:restart command.

What is dokku in Docker?

Dokku is an extensible, open source Platform as a Service that runs on a single server of your choice. Dokku supports building apps on the fly from a git push via either Dockerfile or by auto-detecting the language with Buildpacks, and then starts containers based on your built image.

How do you deploy dokku?

Dokku uses git locally (i.e. not a docker image) to build its own copy of your app repo, including submodules. This is done as the dokku user. Therefore, in order to deploy private git submodules, you'll need to drop your deploy key in ~dokku/. ssh and potentially add github.com (or your VCS host key) into ~dokku/.


2 Answers

dokku ps:restart <app> works for me logged in with dokku system user.

Use dokku apps to list your apps.

like image 199
Edu Lomeli Avatar answered Oct 26 '22 15:10

Edu Lomeli


If you just want restart the web app, run dokku deploy myapp

like image 45
menghan Avatar answered Oct 26 '22 14:10

menghan