deploy.sh to run the server in one script

This commit is contained in:
arnaucode
2017-11-01 22:05:51 +01:00
parent 2a5b455280
commit 26f61c02f5
4 changed files with 33 additions and 8 deletions

24
deploy.sh Normal file
View File

@@ -0,0 +1,24 @@
timestamp() {
date +"%T"
}
timestamp
echo "Starting imagesToDataset"
cd imagesToDataset && python main.py
cd ..
cp ./imagesToDataset/dataset.npy ./nnTrain/dataset.npy
timestamp
echo "Starting nnTrain"
cd nnTrain && python train.py
cd ..
cp ./nnTrain/nn.pkl ./serverPredictor/nn.pkl
timestamp
echo "Starting serverPredictor"
cd serverPredictor && python main.py
echo "----- deploy.sh finished -----"
timestamp

View File

@@ -28,6 +28,7 @@ def getDirectoryFiles(path, imgClass):
#print filename #print filename
image_data = imgFileToData(path + "/" + filename) image_data = imgFileToData(path + "/" + filename)
images.append([image_data, imgClass]) images.append([image_data, imgClass])
print path + "/" + filename
return images return images

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long