본문으로 바로가기

git pull and deploy script

category 개발/Infra 2017.11.24 16:32

.jar 배포하기

cd /var/www/

sh /var/www/april_spring_boot.sh stop


cd /var/www/april_spring_boot/

git pull

sh gradlew assemble

cp /var/www/april_spring_boot/build/libs/aprilskin_api-00.00.04.jar /var/www/april_spring_boot.jar

cd /var/www

sh /var/www/april_spring_boot.sh start

ps -ef | grep java

tail -f logs/prd_app.log


react app 배포하기

#cd /var/www/
#sh /var/www/april_spring_boot.sh stop

cd /var/www/electron_react/
git pull
#npm update
#npm run build
react-scripts build

echo "####### rsync #######"
rsync -ar /var/www/electron_react/build/ /usr/share/nginx/html



댓글을 달아 주세요