Magic / build-run.sh
radames's picture
new base
cb92d2b
raw
history blame
237 Bytes
#!/bin/bash
cd frontend
npm install
npm run build
if [ $? -eq 0 ]; then
echo -e "\033[1;32m\nfrontend build success \033[0m"
else
echo -e "\033[1;31m\nfrontend build failed\n\033[0m" >&2 exit 1
fi
cd ../
python run.py --reload