Comments (3)
- 배포스크립트 작성 : 배포 스크립트로 배포 및 서버 실행
추후 Docker 알아보고 해보기
from health.
서버 배포는 몽고DB 셋팅할때 같이 처리하기
from health.
- git 연동!? 작업
mkdir -p /home1/irteam/deploy/health
git init
git remote add origin https://github.com/dlgustn555/health.git
git fetch
git checkout master
- 배포 스크립트 작성
위치 : /home1/irteam/scripts/health_build.sh
#!/bin/sh
filename=${BASH_SOURCE}
count=`ps -ef | grep $filename | grep -v grep | wc -l`
message=`ps -ef | grep $filename | grep -v grep`
DATE=`/bin/date +%y%m%d`
if [ $count -gt 3 ]
then
echo "EXIST previously executed ${filename} job."
echo $message
exit 0
fi
project='health'
branch='master'
deploy='/home1/irteam/deploy/health'
cd ${deploy}
# Git chekout (branch switch)
result=`git checkout ${branch}`
echo $result
# branch update
result=`git pull | grep "changed"`
echo $result
#Cient yarn install
cd ${deploy}/client
yarn install
#yarn build
#pm2 kill
pm2 delete health-client
#pm2 run
pm2 start npm --name "health-client" -- run dev
- 배포
./health_build.sh
from health.
Related Issues (20)
- [Client] 일정 조회화면을 목록형으로.. (ex) 인스타그램
- [Client] 사용하지않은 CONSTANT 정리하기
- [Client] mutation 정리
- [Client] 템플릿 추가 레이어 > 프로그램 리스트
- [Client] 템플릿 추가 레이어 > Swiper 영역
- [Client] 템플릿 추가 레이어 > 프로그램 추가/삭제 버튼 추가
- [Client] 템플릿 추가 레이어 > 빈값인 필드
- [Cleint] state.schedule 를 state.oSchedule 로 변경
- [Client] 스케줄 등록 레이어 > course 필드 복사
- [Client] 랜덤 색상 생성
- [Server] express -> koa 로 변경
- [Server] 회원가입/로그인 구현하기
- [학습] "회원가입" 프로젝트 실습
- [Client] 스케줄 등록 레이어 > Set 추가 버튼 구현
- [Client] 스케줄 등록 레이어 > 프로그램 삭제 버튼 구현
- npm scripts 추가
- [Client] 템플릿 추가 레이어 > 횟수 추가
- [Client] 캘린더 리스트 - 버그 수정
- 푸시 로그 테스트
- 부모이슈
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from health.