mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 11:07:06 +00:00
(improvement)(chat) deal webapp copy in start (#220)
This commit is contained in:
@@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
sbinDir=$(cd "$(dirname "$0")"; pwd)
|
sbinDir=$(cd "$(dirname "$0")"; pwd)
|
||||||
baseDir=$(cd "$sbinDir/.." && pwd -P)
|
|
||||||
runtimeDir=$baseDir/../runtime
|
|
||||||
buildDir=$baseDir/build
|
|
||||||
|
|
||||||
chmod +x $sbinDir/supersonic-common.sh
|
chmod +x $sbinDir/supersonic-common.sh
|
||||||
source $sbinDir/supersonic-common.sh
|
source $sbinDir/supersonic-common.sh
|
||||||
|
|
||||||
@@ -37,6 +33,7 @@ mv supersonic-webapp webapp
|
|||||||
cp -fr webapp ../../launchers/semantic/target/classes
|
cp -fr webapp ../../launchers/semantic/target/classes
|
||||||
cp -fr webapp ../../launchers/chat/target/classes
|
cp -fr webapp ../../launchers/chat/target/classes
|
||||||
cp -fr webapp ../../launchers/standalone/target/classes
|
cp -fr webapp ../../launchers/standalone/target/classes
|
||||||
|
rm -fr ${buildDir}/webapp
|
||||||
|
|
||||||
#5. build backend python modules
|
#5. build backend python modules
|
||||||
echo "start installing python modules with pip: ${pip_path}"
|
echo "start installing python modules with pip: ${pip_path}"
|
||||||
@@ -49,5 +46,3 @@ rm -fr $runtimeDir/*
|
|||||||
moveAllToRuntime
|
moveAllToRuntime
|
||||||
setEnvToWeb chat
|
setEnvToWeb chat
|
||||||
setEnvToWeb semantic
|
setEnvToWeb semantic
|
||||||
|
|
||||||
rm -fr ${buildDir}/webapp
|
|
||||||
|
|||||||
@@ -4,6 +4,11 @@
|
|||||||
python_path=${PYTHON_PATH:-"python3"}
|
python_path=${PYTHON_PATH:-"python3"}
|
||||||
pip_path=${PIP_PATH:-"pip3"}
|
pip_path=${PIP_PATH:-"pip3"}
|
||||||
|
|
||||||
|
sbinDir=$(cd "$(dirname "$0")"; pwd)
|
||||||
|
baseDir=$(cd "$sbinDir/.." && pwd -P)
|
||||||
|
runtimeDir=$baseDir/../runtime
|
||||||
|
buildDir=$baseDir/build
|
||||||
|
|
||||||
readonly CHAT_APP_NAME="supersonic_chat"
|
readonly CHAT_APP_NAME="supersonic_chat"
|
||||||
readonly SEMANTIC_APP_NAME="supersonic_semantic"
|
readonly SEMANTIC_APP_NAME="supersonic_semantic"
|
||||||
readonly LLMPARSER_APP_NAME="supersonic_llmparser"
|
readonly LLMPARSER_APP_NAME="supersonic_llmparser"
|
||||||
@@ -33,9 +38,13 @@ function moveToRuntime {
|
|||||||
|
|
||||||
function moveAllToRuntime {
|
function moveAllToRuntime {
|
||||||
mkdir -p ${runtimeDir}
|
mkdir -p ${runtimeDir}
|
||||||
|
tar xvf ${buildDir}/supersonic-webapp.tar.gz -C ${buildDir}
|
||||||
|
mv ${buildDir}/supersonic-webapp ${buildDir}/webapp
|
||||||
|
|
||||||
moveToRuntime chat
|
moveToRuntime chat
|
||||||
moveToRuntime semantic
|
moveToRuntime semantic
|
||||||
moveToRuntime standalone
|
moveToRuntime standalone
|
||||||
|
rm -fr ${buildDir}/webapp
|
||||||
}
|
}
|
||||||
|
|
||||||
# run java service
|
# run java service
|
||||||
|
|||||||
@@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
sbinDir=$(cd "$(dirname "$0")"; pwd)
|
sbinDir=$(cd "$(dirname "$0")"; pwd)
|
||||||
baseDir=$(cd "$sbinDir/.." && pwd -P)
|
|
||||||
runtimeDir=$baseDir/../runtime
|
|
||||||
buildDir=$baseDir/build
|
|
||||||
|
|
||||||
chmod +x $sbinDir/supersonic-common.sh
|
chmod +x $sbinDir/supersonic-common.sh
|
||||||
source $sbinDir/supersonic-common.sh
|
source $sbinDir/supersonic-common.sh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user