Spotter-VM/lxc-apps/decidim/update.sh
Disassembler 03d56ac0c9
Bump Ruby to 2.7.2, Decidim to 0.23.1
- Split image to nginx and decidim
 - Make database migrations persistent, resolves #486
2020-11-21 09:25:40 +01:00

13 lines
373 B
Bash
Executable File

#!/bin/sh
set -ev
# Start service containers
spoc-container start decidim-postgres
# Run database migration
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim:upgrade'
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails db:migrate'
# Stop service containers
spoc-container stop decidim-postgres