Run bootstrap seeds in production; add RUN_DEV_SEEDS support
This commit is contained in:
parent
a3e986ae58
commit
d032f1ca0c
5 changed files with 57 additions and 4 deletions
|
|
@ -4,6 +4,9 @@ set -e
|
|||
echo "==> Running database migrations..."
|
||||
/app/bin/migrate
|
||||
|
||||
echo "==> Running seeds (bootstrap; dev if RUN_DEV_SEEDS=true)..."
|
||||
/app/bin/mv eval "Mv.Release.run_seeds()"
|
||||
|
||||
echo "==> Seeding admin user from ENV (ADMIN_EMAIL, ADMIN_PASSWORD)..."
|
||||
/app/bin/mv eval "Mv.Release.seed_admin()"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue