mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-29 19:10:30 +00:00
17 lines
No EOL
393 B
Bash
17 lines
No EOL
393 B
Bash
#!/bin/bash
|
|
|
|
source_path="/websoft9/apphub-dev"
|
|
|
|
echo "Start to cp source code"
|
|
if [ ! "$(ls -A $source_path)" ]; then
|
|
cp -r /websoft9/apphub/* $source_path
|
|
fi
|
|
cp -r /websoft9/apphub/swagger-ui $source_path
|
|
|
|
echo "Install apphub cli"
|
|
pip uninstall apphub -y
|
|
pip install -e $source_path
|
|
|
|
echo "Running the apphub"
|
|
cd $source_path
|
|
exec uvicorn src.main:app --reload --host 0.0.0.0 --port 8080 |