2023-10-18 15:25:03 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-10-18 16:58:47 +08:00
|
|
|
source_path="/websoft9/apphub-dev"
|
|
|
|
|
2023-10-18 15:25:03 +08:00
|
|
|
echo "Start to cp source code"
|
2023-10-18 16:58:47 +08:00
|
|
|
if [ ! "$(ls -A $source_path)" ]; then
|
|
|
|
cp -r /websoft9/apphub/* $source_path
|
2023-10-18 15:25:03 +08:00
|
|
|
fi
|
2023-10-23 16:13:35 +08:00
|
|
|
cp -r /websoft9/apphub/swagger-ui $source_path
|
2023-10-18 15:25:03 +08:00
|
|
|
|
2023-10-18 16:58:47 +08:00
|
|
|
echo "Install apphub cli"
|
|
|
|
pip uninstall apphub -y
|
|
|
|
pip install -e $source_path
|
|
|
|
|
2023-10-18 15:25:03 +08:00
|
|
|
echo "Running the apphub"
|
2023-10-18 16:58:47 +08:00
|
|
|
cd $source_path
|
2023-10-18 17:51:36 +08:00
|
|
|
exec uvicorn src.main:app --reload --host 0.0.0.0 --port 8080
|