2014-10-04 04:24:22 -04:00
# Upgrading
2015-04-18 02:48:44 -04:00
This document covers upgrades for the 0.3.0 series and up. If upgrading from previous versions, we recommend [a fresh install ](http://progrium.viewdocs.io/dokku/installation ) on a new server.
2014-10-04 04:24:22 -04:00
2015-04-18 02:48:44 -04:00
> As of 0.3.18, dokku is installed by default via a debian package. Source-based installations are still available, though not recommended.
2014-10-04 04:24:22 -04:00
2015-04-18 02:48:44 -04:00
## Dokku
If dokku was installed via a debian package, you can upgrade dokku via the following command:
2014-10-04 04:24:22 -04:00
2014-12-19 15:09:38 -05:00
```shell
2015-04-18 02:48:44 -04:00
sudo apt-get install dokku
2014-10-04 04:24:22 -04:00
```
2015-04-18 02:48:44 -04:00
For unattended upgrades, you may run the following command:
2014-10-04 04:24:22 -04:00
2014-12-19 15:09:38 -05:00
```shell
2015-04-18 02:48:44 -04:00
sudo apt-get install -qq -y dokku
2014-10-04 04:24:22 -04:00
```
2015-04-18 02:48:44 -04:00
If you have installed dokku from source, you may run the following commands to upgrade:
2014-10-04 04:24:22 -04:00
2015-04-18 02:48:44 -04:00
```shell
cd ~/dokku
git pull --tags origin master
2014-10-04 04:24:22 -04:00
2015-04-18 02:48:44 -04:00
# continue to install from source
sudo DOKKU_BRANCH=master make install
2014-10-04 04:24:22 -04:00
2015-04-18 02:48:44 -04:00
# upgrade to debian package-based installation
sudo make install
```
2014-10-04 04:24:22 -04:00
2015-04-18 02:48:44 -04:00
All changes will take effect upon next application deployment. To trigger a rebuild of every application, simply run the following command:
2014-10-04 04:24:22 -04:00
2014-12-19 15:09:38 -05:00
```shell
2015-04-18 02:48:44 -04:00
dokku ps:rebuildall
2014-10-04 04:24:22 -04:00
```
2015-04-20 16:32:18 -07:00
## Herokuish image
2014-10-04 04:24:22 -04:00
2015-04-20 16:32:18 -07:00
If dokku was installed via a debian package, you can upgrade herokuish via the following command:
2014-10-04 04:24:22 -04:00
2015-04-18 02:48:44 -04:00
```shell
2015-09-18 18:32:52 +02:00
sudo apt-get install herokuish
2015-04-18 02:48:44 -04:00
```
2014-10-04 04:24:22 -04:00
2015-04-18 02:48:44 -04:00
For unattended upgrades, you may run the following command:
2014-10-04 04:24:22 -04:00
2015-04-18 02:48:44 -04:00
```shell
2015-04-20 16:32:18 -07:00
sudo apt-get install -qq -y herokuish
2015-04-18 02:48:44 -04:00
```
2014-10-04 04:24:22 -04:00
2015-04-20 16:32:18 -07:00
In some cases, it may be desirable to run a specific version of herokuish. To install/upgrade herokuish from source, run the following commands:
2014-10-04 04:24:22 -04:00
2015-04-18 02:48:44 -04:00
```shell
cd /tmp
2015-04-20 16:32:18 -07:00
git clone https://github.com/gliderlabs/herokuish.git
cd herokuish
2015-04-18 02:48:44 -04:00
git pull origin master
2015-07-09 13:22:12 -07:00
IMAGE_NAME=gliderlabs/herokuish BUILD_TAG=latest VERSION=master make -e build-in-docker
2015-04-18 02:48:44 -04:00
```