Skip to content

Commit 8dc44b0

Browse files
committed
Update tutorial.md
1 parent d63a8ec commit 8dc44b0

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

docs/tutorial.md

+3-21
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ bundle exec rails webpacker:install:react
5555
```
5656

5757

58-
![01](https://cloud.githubusercontent.com/assets/20628911/17464917/3c29e55a-5cf2-11e6-8754-046ba3ee92d9.png)
59-
6058

6159
Add the **React On Rails** gem to your Gemfile:
6260

@@ -65,10 +63,9 @@ gem 'react_on_rails', '9.0.0' # use latest gem version, prefer exact ver
6563
```
6664

6765

68-
![02](https://cloud.githubusercontent.com/assets/20628911/17464919/3c2d74c2-5cf2-11e6-8704-a84958832fbb.png)
69-
7066
Then run `bundle` and commit the git repository (or `rails generate` will not work properly)
7167

68+
7269
```
7370
bundle
7471
@@ -85,21 +82,15 @@ rails generate react_on_rails:install
8582
bundle && yarn
8683
```
8784

88-
![03](https://cloud.githubusercontent.com/assets/20628911/17464918/3c2c1f00-5cf2-11e6-9525-7b2e15659e01.png)
89-
9085
and then run server with
9186

9287
```
9388
foreman start -f Procfile.dev
9489
```
9590

96-
![04](https://cloud.githubusercontent.com/assets/20628911/17464921/3c2fdb40-5cf2-11e6-9343-6afa53593a70.png)
97-
9891
Visit http://localhost:3000/hello_world and see your **React On Rails** app running!
9992
Note, foreman defaults to PORT 5000 unless you set the value of PORT in your environment or in the Procfile.
10093

101-
![05](https://cloud.githubusercontent.com/assets/20628911/17464920/3c2e8ae2-5cf2-11e6-9e30-5ec5f9e2cbc6.png)
102-
10394
### Custom IP & PORT setup (Cloud9 example)
10495

10596
In case you are running some custom setup with different IP or PORT you should also edit Procfile.dev. For example to be able to run on free Cloud9 IDE we are putting IP 0.0.0.0 and PORT 8080. The default generated file `Procfile.dev` uses `-p 3000`.
@@ -115,8 +106,8 @@ Then visit https://your-shared-addr.c9users.io:8080/hello_world
115106

116107
It's super important to exclude certain directories from RubyMine or else it will slow to a crawl as it tries to parse all the npm files.
117108

118-
* `public/webpack` (or `app/assets/webpack` on older versions of react_on_rails)
119-
* `client/node_modules`
109+
* Generated files, per the settings in your `config/webpacker.yml`, which default to `public/packs` and `public/packs-test`
110+
* `node_modules`
120111

121112
## Deploying to Heroku
122113

@@ -225,13 +216,4 @@ git commit -m "Latest changes"
225216
git push heroku master
226217
```
227218

228-
![10](https://cloud.githubusercontent.com/assets/20628911/17465017/1f38fbaa-5cf4-11e6-8d86-a3d91e3878e0.png)
229-
230-
## Links
231-
These are updated for 8.0.0:
232-
233-
* [PR for using the generator with the Redux option](https://github.com/shakacode/react_on_rails-test-new-redux-generation/pull/17)
234-
* [PR showing the changes to deploy to Heroku](https://github.com/shakacode/react_on_rails-test-new-redux-generation/pull/18)
235-
* [Live on Heroku](https://hello-react-on-rails-8-0-0.herokuapp.com/)
236-
237219
Feedback is greatly appreciated! As are stars on github! If you want personalized help, don't hesitate to get in touch with us at [[email protected]](mailto:[email protected]).

0 commit comments

Comments
 (0)