mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-10 22:17:44 +00:00
17 lines
272 B
Text
17 lines
272 B
Text
|
#!/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
|
||
|
}
|