Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Update README.md #193

Merged
mars merged 2 commits into mars:master from Darkace01:patch-1
Feb 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Ensure [requirements](#user-content-requires) are met, then execute the followin
npx create-react-app@3.x $APP_NAME
cd $APP_NAME
heroku create $APP_NAME --buildpack mars/create-react-app
git push heroku master
git push heroku main
heroku open
```

Expand Down Expand Up @@ -104,20 +104,20 @@ This command:

* sets the [app name](https://devcenter.heroku.com/articles/creating-apps#creating-a-named-app) & its default URL `https://$APP_NAME.herokuapp.com`
* sets the app to use this [buildpack](https://devcenter.heroku.com/articles/buildpacks)
* 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.
* 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.

### Deploy ♻️

```bash
git push heroku master
git push heroku main
```

...or if you are ever working on a branch other than `master`:
...or if you are ever working on a branch other than `main`:

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

```bash
git push heroku $BRANCH_NAME:master
git push heroku $BRANCH_NAME:main
```

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

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

Then, `git commit` your changes & `git push heroku master` ♻️
Then, `git commit` your changes & `git push heroku main` ♻️

### Push to Github

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

git commit --allow-empty -m "Set REACT_APP_HELLO config var"
git push heroku master
git push heroku main
```

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:
Expand Down Expand Up @@ -480,7 +480,7 @@ Troubleshooting

```bash
git commit --allow-empty -m 'Switch to create-react-app-buildpack'
git push heroku master
git push heroku main
```

If the error still occurs, then at least we know it's really using this buildpack! Proceed with troubleshooting.
Expand All @@ -495,7 +495,7 @@ Troubleshooting
Version compatibility
---------------------

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.
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.

[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:

Expand Down

AltStyle によって変換されたページ (->オリジナル) /