Disassembler
03d56ac0c9
- Split image to nginx and decidim - Make database migrations persistent, resolves #486
13 lines
373 B
Bash
Executable File
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
|