-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathscript
More file actions
24 lines (21 loc) · 824 Bytes
/
script
File metadata and controls
24 lines (21 loc) · 824 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
%%bash
# Get backend in right spot
cd /deployments
git clone {WRONGFlask.git}
cd {WRONGFlask}
# Build and test backend
docker-compose up -d --build
curl localhost:{8100} # PORTS MUST NOT OVERLAP
# IF you want to code a script, this is an example checkpoint
# Checkpoint -- does the backend work?
# put exact all caps YES to proceed or else the script will exit (safety)
echo -n "CHECKPOINT. Does the curl command return the right page? YES/NO: "
read checkpoint
if [checkpoint == "YES"]; then
# In future scripts, we will not exit here, but assuming we have done R53 we will continue
echo "CHECKPOINT PASSED. Proceed."
exit 0 # This will exit without displaying the output as an error
else
echo "CHECKPOINT FAILED. Must fix issues."
exit 1 # This will exit while displaying the output as an error
fi