forked from paritytech/polkadot-hub-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
33 lines (28 loc) · 1.95 KB
/
start.sh
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
26
27
28
29
30
31
32
33
#!/bin/bash
echo "
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░██╗░░██╗██╗░░░██╗██████╗░░░░░░█████╗░██████╗░██████╗░░
░██║░░██║██║░░░██║██╔══██╗░░░░██╔══██╗██╔══██╗██╔══██╗░
░███████║██║░░░██║██████╦╝░░░░███████║██████╔╝██████╔╝░
░██╔══██║██║░░░██║██╔══██╗░░░░██╔══██║██╔═══╝░██╔═══╝░░
░██║░░██║╚██████╔╝██████╦╝░░░░██║░░██║██║░░░░░██║░░░░░░
░╚═╝░░╚═╝░╚═════╝░╚═════╝░░░░░╚═╝░░╚═╝╚═╝░░░░░╚═╝░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░"
demo_config=false
dev_flag=false
if [ "$1" == "--demo" ]; then
demo_config=true
elif [ "$1" == "--dev" ]; then
dev_flag=true
fi
# Run the appropriate command based on the presence of the --demo flag
if [ "$demo_config" = true ]; then
echo "Starting Polkadot Hub using demo docker-compose-demo.yml and ./config-demo"
docker compose -f docker-compose-demo.yml up
elif [ "$dev_flag" = true ]; then
echo "Starting Polkadot Hub using docker-compose-dev.yml and ./config"
docker compose -f docker-compose-dev.yml up
else
echo "Starting Polkadot Hub using docker-compose.yml and ./config"
docker compose -f docker-compose.yml up
fi