Add upgrade instructions

docker-upgrade
Marcin Kulik 7 years ago
parent 92b03bb3f7
commit ff35ad05f6

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e
bundle exec rake db:migrate
bundle exec rake db:seed

@ -57,6 +57,11 @@ docker-compose configuration.
git clone --recursive https://github.com/asciinema/asciinema.org.git git clone --recursive https://github.com/asciinema/asciinema.org.git
It's recommended to checkout a new branch, to keep any customizations separate
from master branch and make upgrading safer:
git checkout -b example
### Edit config file ### Edit config file
You need to create `.env.production` config file. The easiest is to use You need to create `.env.production` config file. The easiest is to use
@ -136,6 +141,25 @@ You should see `asciinema_web`, `asciinema_postgres` and a few others listed.
Point your browser to `BASE_URL` and enjoy your own asciinema hosting site! Point your browser to `BASE_URL` and enjoy your own asciinema hosting site!
## Upgrading
Stop all containers:
docker-compose stop
Pull latest code from upstream and merge it into your branch:
git fetch origin
git merge origin/master
Upgrade database:
docker-compose run --rm web upgrade
Start new containers:
docker-compose up -d
## Using asciinema recorder with your instance ## Using asciinema recorder with your instance
Once you have your instance running, point asciinema recorder to it by setting Once you have your instance running, point asciinema recorder to it by setting

Loading…
Cancel
Save