build script update
This commit is contained in:
parent
70706da7fd
commit
6f0f70088e
5
build.sh
5
build.sh
@ -15,7 +15,7 @@ rm -rf $SERVER_DIR/src/main/resources/static
|
||||
mkdir $SERVER_DIR/src/main/resources/static
|
||||
# assemble FE
|
||||
cd $FE_DIR
|
||||
npx webpack --env apiurl=http://$SERVER_PUBLIC_ADDR
|
||||
npx webpack --env apiurl=https://$SERVER_PUBLIC_ADDR
|
||||
cd $SERVER_DIR/src/main/resources/static
|
||||
rm -rf ./*
|
||||
cp -r $FE_DIR/dist/* $SERVER_DIR/src/main/resources/static/
|
||||
@ -25,6 +25,9 @@ mvn clean package
|
||||
# assemble package
|
||||
cp $SERVER_DIR/target/self-survey.war $CONFIG_DIR/build/ROOT.war
|
||||
cp $CONFIG_DIR/docker-compose.yml $CONFIG_DIR/build/docker-compose.yml
|
||||
cd $CONFIG_DIR/build
|
||||
tar -czvf ./build.tar.gz ./docker-compose.yml ./ROOT.war
|
||||
|
||||
|
||||
#instructions
|
||||
echo "COMPLETED!"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user