Skip to content

Commit a2d4d40

Browse files
committed
Updated README.md
1 parent a76b174 commit a2d4d40

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,25 @@ Run the development server using `npm run start`
1111
You can edit them in `.env` file.
1212

1313
# Heroku Deployment
14+
Make sure your variables are defined in .env first.
15+
16+
Install the heroku config plugin:
17+
```
18+
heroku plugins:install heroku-config```
19+
1420
```
1521
git init
1622
git add .
1723
git commit -m "react-create-app on Heroku"
18-
# make sure commit all codes and usuaully you do not need to run above command if you are sure your codes in git repo is latest.
19-
heroku create -b https://github.com/mars/create-react-app-buildpack.git
24+
# make sure commit all codes and usually you do not need to run above command if you are sure your codes in git repo is latest.
25+
26+
heroku create
27+
heroku buildpacks:add heroku/nodejs
28+
heroku buildpacks:add https://github.com/mars/create-react-app-buildpack.git
29+
2030
# set variables defined in .env
21-
heroku config:set REACT_APP_API_BASE_PATH=base url
22-
heroku config:set REACT_APP_SOCKET_URL=socket url
23-
heroku config:set REACT_APP_AUTH0_CLIEND_ID=auth0 client id
24-
heroku config:set REACT_APP_AUTH0_DOMAIN=auth0 domain
25-
heroku config:set REACT_APP_GOOGLE_API_KEY=google api key
31+
heroku config:push
32+
2633
git push heroku HEAD:master
2734
heroku open
2835
```
@@ -31,5 +38,4 @@ You can use new configuration with below commands from [set-vars-on-heroku](http
3138
```
3239
heroku config:set REACT_APP_API_BASE_PATH=new base url
3340
git commit --allow-empty -m "Set REACT_APP_API_BASE_PATH config var"
34-
git push heroku HEAD:master
35-
```
41+
git push heroku HEAD:master```

0 commit comments

Comments
 (0)