React 배포하기 - Travis, Github Pages

$ npx create-react-app exam-deploy-pages
$ cd exam-deploy-pages
$ npm start 








Last updated
Was this helpful?

$ npx create-react-app exam-deploy-pages
$ cd exam-deploy-pages
$ npm start 








Last updated
Was this helpful?
Was this helpful?
$ git init
$ git add .
$ git commit -m "initial commit"
$ git remote add origin <본인 repo>
$ git push -u origin masterlanguage: node_js
node_js:
- "11"
cache:
directories:
- node_modules
deploy:
provider: pages
skip-cleanup: true
keep-history: true
github-token: $GITHUB_TOKEN
local_dir: public
on:
branch: master
install:
- npm install
script:
- npm run deploy$ npm i -D gh-pages"homepage" : "http://<Github 유저 이름>.github.io/<Github Repo 이름>"$ git add .
$ git commit -m "bulid script 를 추가합니다"
$ git push origin master