You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
373 B
22 lines
373 B
#!/bin/sh
|
|
|
|
|
|
cd /app
|
|
|
|
export PORT=2233
|
|
export webClient=https://risk.kirito.cool
|
|
export serverPort=5000
|
|
export listenAddress=0.0.0.0
|
|
export apiServer=https://risk.kirito.cool
|
|
|
|
|
|
function run(){
|
|
if [ ! -e $1 ]
|
|
then
|
|
git clone git@gogs.kirito.cool:panqihua/$1.git
|
|
fi
|
|
cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode
|
|
}
|
|
|
|
nohup run $1 > $1.log &
|
|
|
|
|