14 lines
386 B
Bash
14 lines
386 B
Bash
|
#! /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
|