Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Commit e6de55b

Browse files
authored
Update README.md (#193)
* Update README.md Change the default branch in commands from master to main * Update README.md Version Compatibility Section (Changed master to main)
1 parent 733028c commit e6de55b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Ensure [requirements](#user-content-requires) are met, then execute the followin
6767
npx [email protected] $APP_NAME
6868
cd $APP_NAME
6969
heroku create $APP_NAME --buildpack mars/create-react-app
70-
git push heroku master
70+
git push heroku main
7171
heroku open
7272
```
7373

@@ -104,20 +104,20 @@ This command:
104104

105105
* sets the [app name](https://devcenter.heroku.com/articles/creating-apps#creating-a-named-app) & its default URL `https://$APP_NAME.herokuapp.com`
106106
* sets the app to use this [buildpack](https://devcenter.heroku.com/articles/buildpacks)
107-
* configures the [`heroku` git remote](https://devcenter.heroku.com/articles/git#creating-a-heroku-remote) in the local repo, so `git push heroku master` will push to this new Heroku app.
107+
* configures the [`heroku` git remote](https://devcenter.heroku.com/articles/git#creating-a-heroku-remote) in the local repo, so `git push heroku main` will push to this new Heroku app.
108108

109109
### Deploy ♻️
110110

111111
```bash
112-
git push heroku master
112+
git push heroku main
113113
```
114114

115-
…or if you are ever working on a branch other than `master`:
115+
…or if you are ever working on a branch other than `main`:
116116

117117
✏️ *Replace `$BRANCH_NAME` with the name for the current branch.*
118118

119119
```bash
120-
git push heroku $BRANCH_NAME:master
120+
git push heroku $BRANCH_NAME:main
121121
```
122122

123123
### Visit the app's public URL in your browser
@@ -134,7 +134,7 @@ Find the app on [your dashboard](https://dashboard.heroku.com).
134134

135135
Work with your app locally using `npm start`. See: [create-react-app docs](https://github.com/facebookincubator/create-react-app#getting-started)
136136

137-
Then, `git commit` your changes & `git push heroku master` ♻️
137+
Then, `git commit` your changes & `git push heroku main` ♻️
138138

139139
### Push to Github
140140

@@ -369,7 +369,7 @@ class App extends Component {
369369
heroku config:set REACT_APP_HELLO='I love sushi!'
370370

371371
git commit --allow-empty -m "Set REACT_APP_HELLO config var"
372-
git push heroku master
372+
git push heroku main
373373
```
374374

375375
Only `REACT_APP_` vars are replaced in create-react-app's build. To make any other variables visible to React, they must be prefixed for the build command in `package.json`, like this:
@@ -480,7 +480,7 @@ Troubleshooting
480480
481481
```bash
482482
git commit --allow-empty -m 'Switch to create-react-app-buildpack'
483-
git push heroku master
483+
git push heroku main
484484
```
485485
486486
If the error still occurs, then at least we know it's really using this buildpack! Proceed with troubleshooting.
@@ -495,7 +495,7 @@ Troubleshooting
495495
Version compatibility
496496
---------------------
497497

498-
This buildpack will never intentionally cause previously deployed apps to become undeployable. Using master [as directed in the main instructions](#user-content-create-the-heroku-app) will always deploy an app with the most recent version of this buildpack.
498+
This buildpack will never intentionally cause previously deployed apps to become undeployable. Using main [as directed in the main instructions](#user-content-create-the-heroku-app) will always deploy an app with the most recent version of this buildpack.
499499

500500
[Releases are tagged](https://github.com/mars/create-react-app-buildpack/releases), so you can lock an app to a specific version, if that kind of determinism pleases you:
501501

0 commit comments

Comments
 (0)