Skip to content

Commit

Permalink
fix : starter.sh 파일 예시 수정
Browse files Browse the repository at this point in the history
윈도우에서 실행되지 않았던 스크립트를 실행되도록 수정함 때문에 이 파일에는 맥용과 윈도우용 스크립트가 같이 있음 -ishue:#3
  • Loading branch information
GiPyoo committed Jan 4, 2020
1 parent a2e3d1d commit f7d96d7
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions starter.sh-example.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
# react - build
# OS X

## react - build

cd client && npm install
echo password | sudo -S rm -rf ./build/_ && npm run build
cd ../server && echo password | sudo -S rm -rf ./public/_
cd ..
cp -a ./client/build/. server/public

# express 실행
## express 실행

cd server && npm install
SET DEBUG=server:\* & npm start

# window

## react - build

cd client && npm install
rmdir /s /q build && npm run build
cd ../server && rmdir /s /q public
cd ..
cp -a ./client/build/. server/public

## express 실행

cd server && npm install
SET DEBUG=server:\* & npm start

0 comments on commit f7d96d7

Please sign in to comment.