-
Notifications
You must be signed in to change notification settings - Fork 3
14 Deploy
JP Barbosa edited this page Apr 16, 2021
·
1 revision
code ./.env.production
REACT_APP_API=https://typescript-crud-api.herokuapp.com
yarn add gh-pages
code ./package.json
{
...
"homepage": "/typescript-crud",
"dependencies": {
...
},
"scripts": {
...,
"predeploy": "yarn run build",
"deploy": "gh-pages -d build"
},
...
}
git add .
git commit -m "Deploy"
git branch -m master main
git remote add origin [email protected]:jp7internet/typescript-crud.git
git push -u origin main
yarn deploy
open https://jp7internet.github.io/typescript-crud
- Replace "jp7internet" with your GitHub user name.