mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
16 lines
272 B
Bash
Executable file
16 lines
272 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
# ensure everything in the app is up to date.
|
|
script/bootstrap
|
|
|
|
[ -f ".env" ] && {
|
|
source .env
|
|
|
|
echo "===> Running migrations..."
|
|
createdb -U apollo apollo || true
|
|
migrate -path=./migrations -database=$DATABASE_URL up
|
|
}
|