Add upgrade instructions

ex-seed
Marcin Kulik 7 years ago
parent ba78fca330
commit ddc4b2a211

@ -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
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
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!
## 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
Once you have your instance running, point asciinema recorder to it by setting

Loading…
Cancel
Save