2014-10-04 04:24:22 -04:00
|
|
|
# Upgrading
|
|
|
|
|
|
2016-04-20 15:43:39 -05:00
|
|
|
If your version of dokku is pre 0.3.0 (check with `dokku version`), we recommend [a fresh install](/dokku/installation) on a new server.
|
2014-10-04 04:24:22 -04:00
|
|
|
|
2016-03-21 01:41:03 -04:00
|
|
|
## Migration Guides
|
2016-03-02 23:10:05 -05:00
|
|
|
|
2016-04-20 15:32:52 -05:00
|
|
|
Before upgrading, check the migration guides to get comfortable with new features and prepare your deployment to be upgraded.
|
2016-03-02 23:10:05 -05:00
|
|
|
|
2016-04-20 15:43:39 -05:00
|
|
|
- [0.5 Migration Guide](/dokku/appendices/0.5.0-migration-guide/)
|
2016-05-09 16:03:07 -07:00
|
|
|
- [0.6 Migration Guide](/dokku/appendices/0.6.0-migration-guide/)
|
2016-03-28 21:09:37 -05:00
|
|
|
|
2016-04-20 15:32:52 -05:00
|
|
|
## Upgrade Instructions
|
2016-03-28 21:09:37 -05:00
|
|
|
|
2016-04-20 15:32:52 -05:00
|
|
|
If dokku was installed via `apt-get install dokku` or `bootstrap.sh` (most common), upgrade with:
|
2014-10-04 04:24:22 -04:00
|
|
|
|
2014-12-19 15:09:38 -05:00
|
|
|
```shell
|
2016-04-20 15:32:52 -05:00
|
|
|
sudo apt-get update
|
|
|
|
|
dokku apps
|
|
|
|
|
dokku ps:stop <app> # repeat to shut down each running app
|
|
|
|
|
sudo apt-get install -qq -y dokku herokuish
|
|
|
|
|
dokku ps:rebuildall # restart all applications
|
2014-10-04 04:24:22 -04:00
|
|
|
```
|
|
|
|
|
|
2016-04-20 15:32:52 -05:00
|
|
|
### Upgrade From Source
|
2014-10-04 04:24:22 -04:00
|
|
|
|
2016-04-20 15:32:52 -05:00
|
|
|
If you installed dokku from source (less common), upgrade with:
|
2014-10-04 04:24:22 -04:00
|
|
|
|
2015-04-18 02:48:44 -04:00
|
|
|
```shell
|
2016-04-20 15:32:52 -05:00
|
|
|
dokku apps
|
|
|
|
|
dokku ps:stop <app> # repeat to shut down each running app
|
2015-04-18 02:48:44 -04:00
|
|
|
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
|
2016-04-20 15:32:52 -05:00
|
|
|
dokku ps:rebuildall # restart all applications
|
2015-04-18 02:48:44 -04:00
|
|
|
```
|
2014-10-04 04:24:22 -04:00
|
|
|
|
2016-04-20 15:32:52 -05:00
|
|
|
To upgrade herokuish from source, upgrade with:
|
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
|
|
|
```
|