Alysha Creelman commited on
Commit
bbac4fc
·
unverified ·
1 Parent(s): 165750d

Re cloning the repo model_building.sh

Browse files
Files changed (1) hide show
  1. model_building.sh +11 -3
model_building.sh CHANGED
@@ -10,10 +10,18 @@ COMMAND="ssh -i group_key -p ${PORT} -o StrictHostKeyChecking=no student-admin@$
10
  eval "$(ssh-agent -s)"
11
  ssh-add group_key
12
 
 
 
 
 
 
 
 
 
 
 
 
13
  ${COMMAND} "ls Wormington-Scholar"
14
- ${COMMAND} "cd Wormington-Scholar"
15
- ${COMMAND} "git pull"
16
- ${COMMAND} "cd .."
17
  ${COMMAND} "sudo apt install -qq -y python3-venv"
18
  ${COMMAND} "cd Wormington-Scholar && python3 -m venv venv"
19
  ${COMMAND} "cd Wormington-Scholar && source venv/bin/activate && pip install -r requirements.txt"
 
10
  eval "$(ssh-agent -s)"
11
  ssh-add group_key
12
 
13
+ # clone the repo
14
+ git clone https://github.com/alyshacreelman/Wormington-Scholar
15
+
16
+ # Copy the files to the server
17
+ scp -P ${PORT} -o StrictHostKeyChecking=no -r Wormington-Scholar student-admin@${MACHINE}:~/
18
+
19
+ # from here on code is currently commented out in Randy's code
20
+
21
+ # check that the code in installed and start up the product
22
+ COMMAND="ssh -p ${PORT} -o StrictHostKeyChecking=no student-admin@${MACHINE}"
23
+
24
  ${COMMAND} "ls Wormington-Scholar"
 
 
 
25
  ${COMMAND} "sudo apt install -qq -y python3-venv"
26
  ${COMMAND} "cd Wormington-Scholar && python3 -m venv venv"
27
  ${COMMAND} "cd Wormington-Scholar && source venv/bin/activate && pip install -r requirements.txt"