-
Notifications
You must be signed in to change notification settings - Fork 1
/
startup.sh
29 lines (27 loc) · 1.38 KB
/
startup.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
cat << "EOF"
/$$ /$$ /$$ /$$ /$$
|__/ | $$ | $$| $$ | $$
/$$$$$$ /$$ /$$ /$$ /$$$$$$$| $$ /$$ /$$$$$$ /$$$$$$ | $$| $$ /$$$$$$ | $$$$$$$
/$$__ $$| $$ | $$| $$ /$$_____/| $$ /$$/ /$$__ $$ /$$__ $$| $$| $$ |____ $$| $$__ $$
| $$ \ $$| $$ | $$| $$| $$ | $$$$$$/ | $$ \ $$| $$ \ $$| $$| $$ /$$$$$$$| $$ \ $$
| $$ | $$| $$ | $$| $$| $$ | $$_ $$ | $$ | $$| $$ | $$| $$| $$ /$$__ $$| $$ | $$
| $$$$$$$| $$$$$$/| $$| $$$$$$$| $$ \ $$| $$$$$$$| $$$$$$/| $$| $$| $$$$$$$| $$$$$$$/
\____ $$ \______/ |__/ \_______/|__/ \__/ \____ $$ \______/ |__/|__/ \_______/|_______/
| $$ | $$
| $$ | $$
|__/ |__/
EOF
echo "Activating virtual environment..."
if [[ "$OSTYPE" == "win32" ]] || [[ "$OSTYPE" == "msys" ]]; then
source ./api/venv/Scripts/activate
else
source ./api/venv/bin/activate
fi
if [ $? -ne 0 ]; then
echo
echo "ERROR DETECTED"
echo "Virtual environment not detected. Run setup.sh to create."
else
echo "Starting the project..."
npm start
fi