KintoneAppBuilder created
This commit is contained in:
16
scripts/build.sh
Normal file
16
scripts/build.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Exit in case of error
|
||||
set -e
|
||||
|
||||
# Build and run containers
|
||||
docker-compose up -d
|
||||
|
||||
# Hack to wait for postgres container to be up before running alembic migrations
|
||||
sleep 5;
|
||||
|
||||
# Run migrations
|
||||
docker-compose run --rm backend alembic upgrade head
|
||||
|
||||
# Create initial data
|
||||
docker-compose run --rm backend python3 app/initial_data.py
|
||||
Reference in New Issue
Block a user