forked from Joystream/joystream
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·25 lines (19 loc) · 714 Bytes
/
Copy pathstart.sh
File metadata and controls
executable file
·25 lines (19 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
set -e
SCRIPT_PATH="$(dirname "${BASH_SOURCE[0]}")"
cd $SCRIPT_PATH
# Only run codegen if no generated files found
[ ! -d "generated/" ] && yarn build
# Bring up db
docker-compose -f ../docker-compose.yml up -d db
echo "Waiting for the db to be ready..."
sleep 5
# Start indexer and gateway
docker-compose -f ../docker-compose.yml up -d indexer
docker-compose -f ../docker-compose.yml up -d hydra-indexer-gateway
# Start processor
docker-compose -f ../docker-compose.yml up -d processor
echo "Waiting for processor to be ready..." && sleep 30
# Start graphql-server
docker-compose -f ../docker-compose.yml up -d graphql-server
echo "Waiting for graphql-server to be ready..." && sleep 30