shenchucheng
download html source from remote
0d5e9a2
raw
history blame
550 Bytes
#!/usr/bin/bash
set -ex
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
--update-config-template)
UPDATE_CONFIG_TEMPLATE=true
shift
;;
*)
# unknown option
shift
;;
esac
done
rm -rf static
wget -O dist.tar.gz https://public-frontend-1300249583.cos.ap-nanjing.myqcloud.com/test-hp-metagpt-web/dist-20231228164728.tar.gz
tar xvzf dist.tar.gz
mv dist static
rm dist.tar.gz
if [ "$UPDATE_CONFIG_TEMPLATE" = true ]; then
rm static/config.yaml
ln -s ../config/template.yaml static/config.yaml
fi