mirror of
https://github.com/dokku/dokku.git
synced 2025-12-24 07:49:26 +01:00
The tags and tar plugins do not necessarily build from source, and running `ps:rebuild` can have some unexpected output in certain cases. Rather than try to handle that complexity - it's a lot - documenting the edge cases is the most appropriate way forward.
2.0 KiB
2.0 KiB
Upgrading
If your version of Dokku is pre 0.3.0 (check with dokku version), we recommend a fresh install on a new server.
Migration Guides
Before upgrading, check the migration guides to get comfortable with new features and prepare your deployment to be upgraded.
0.5 Migration Guide
0.6 Migration Guide
0.7 Migration Guide
Upgrade Instructions
If Dokku was installed via apt-get install dokku or bootstrap.sh (most common), upgrade with:
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 # rebuilds all applications
If you have any applications deployed via the
tagsortarcommands, do not run theps:rebuildallcommand, and instead triggerps:rebuildmanually for eachgit-deployed application:dokku ps:rebuild APPPlease see the images documentation and tar documentation for instructions on rebuilding applications deployed by those plugins.
Upgrade From Source
If you installed Dokku from source (less common), upgrade with:
dokku apps
dokku ps:stop <app> # repeat to shut down each running app
cd ~/dokku
git pull --tags origin master
# continue to install from source
sudo DOKKU_BRANCH=master make install
# upgrade to debian package-based installation
sudo make install
dokku ps:rebuildall # rebuilds all applications
To upgrade herokuish from source, upgrade with:
cd /tmp
git clone https://github.com/gliderlabs/herokuish.git
cd herokuish
git pull origin master
IMAGE_NAME=gliderlabs/herokuish BUILD_TAG=latest VERSION=master make -e build-in-docker