usse/automate.sh

14 lines
386 B
Bash
Raw Normal View History

2024-03-31 16:01:38 +00:00
#! /bin/bash
CURR_DIR=$(pwd)
SCRAPE_DIR=${CURR_DIR}/scrape
REACT_DIR=${CURR_DIR}/react_usse
# Move panda_dump.bin
mv ${SCRAPE_DIR}/panda_dump.bin ${SCRAPE_DIR}/_panda_dump.bin
source ${SCRAPE_DIR}/venv/bin/activate && python ${SCRAPE_DIR}/usse.py && deactivate
cp ${SCRAPE_DIR}/out.json ${REACT_DIR}/src/locations.json
# Deploy new container
cd ${REACT_DIR}
./use_docker.sh recreate