jueves, 9 de marzo de 2017

Deploy react app en gh-pages

https://medium.freecodecamp.com/surge-vs-github-pages-deploying-a-create-react-app-project-c0ecbf317089#.v1mer95aa


  • npm install --save-dev gh-pages
  • En package.json, indicar el url del site para gh-pages:
    "homepage": "https://<github-username>.github.io/<project-repo>"
  • En package.json, agregar el comando para el deploy:
    "deploy" : "npm run build&&gh-pages -d build"
  • npm run deploy