react_on_rails 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -3
- data/docs/additional_reading/heroku_deployment.md +6 -6
- data/docs/tutorial-v2.md +3 -2
- data/lib/generators/react_on_rails/heroku_deployment_generator.rb +1 -2
- data/lib/react_on_rails/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -3
- data/lib/generators/react_on_rails/templates/heroku_deployment/.buildpacks +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd9b9b65d290177a63655ae64925547393005194
|
4
|
+
data.tar.gz: 46092839fb6e7248821eb54c2fe36df79182fb58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 824085aad96d224ee346a02a84a93ef283a760b48296d7c5e2307d94f7d08438aa9d5d2b7feaa6565dda89d8c30485d76686f7008824e78ed9c5a5b81ba3b506
|
7
|
+
data.tar.gz: 791025cd056f9e2515a2a0240a4077804642069603e54855c224a95834f57ca30a70c32923aaad5273bf449f833125d296d26da3a478678b5af13d03794be771
|
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. Items under
|
|
4
4
|
Contributors: please follow the recommendations outlined at [keepachangelog.com](http://keepachangelog.com/). Please use the existing headings and styling as a guide, and add a link for the version diff at the bottom of the file. Also, please update the `Unreleased` link to compare to the latest release version.
|
5
5
|
## [Unreleased]
|
6
6
|
|
7
|
-
## [4.0.0
|
7
|
+
## [4.0.0] - 2016-03-14
|
8
8
|
##### Added
|
9
9
|
- Added optional parameter for ReactOnRails.getStore(name, throwIfMissing = true) so that you can check if a store is defined easily.
|
10
10
|
- Added controller `module ReactOnRails::Controller`. Adds method `redux_store` to setup redux stores in the view.
|
@@ -220,8 +220,8 @@ Best done with Object destructing:
|
|
220
220
|
|
221
221
|
##### Fixed
|
222
222
|
- Fix several generator related issues.
|
223
|
-
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/4.0.0
|
224
|
-
[4.0.0
|
223
|
+
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/4.0.0...master
|
224
|
+
[4.0.0]: https://github.com/shakacode/react_on_rails/compare/3.0.6...4.0.0
|
225
225
|
[3.0.6]: https://github.com/shakacode/react_on_rails/compare/3.0.5...3.0.6
|
226
226
|
[3.0.5]: https://github.com/shakacode/react_on_rails/compare/3.0.4...3.0.5
|
227
227
|
[3.0.4]: https://github.com/shakacode/react_on_rails/compare/3.0.3...3.0.4
|
@@ -2,7 +2,6 @@
|
|
2
2
|
The generator has created the necessary files and gems for deployment to Heroku. If you have installed manually, you will need to provide these files yourself:
|
3
3
|
|
4
4
|
+ `Procfile`: used by Heroku and Foreman to start the Puma server
|
5
|
-
+ `.buildpacks`: used to install Ruby and Node environments
|
6
5
|
+ `12factor` gem: required by Heroku
|
7
6
|
+ `'puma'` gem: recommended Heroku webserver
|
8
7
|
+ `config/puma.rb`: Puma webserver config file
|
@@ -10,18 +9,19 @@ The generator has created the necessary files and gems for deployment to Heroku.
|
|
10
9
|
|
11
10
|
## How to Deploy
|
12
11
|
|
13
|
-
React on Rails requires both a ruby environment (for Rails) and a Node environment (for Webpack), so you will need to have Heroku use multiple buildpacks.
|
12
|
+
React on Rails requires both a ruby environment (for Rails) and a Node environment (for Webpack), so you will need to have Heroku use multiple buildpacks.
|
14
13
|
|
15
|
-
Assuming you have downloaded and installed the Heroku command-line utility and have initialized the app, you will need to tell Heroku to use
|
14
|
+
Assuming you have downloaded and installed the Heroku command-line utility and have initialized the app, you will need to tell Heroku to use both buildpacks via the command-line:
|
16
15
|
|
17
16
|
```
|
18
|
-
heroku buildpacks:set
|
17
|
+
heroku buildpacks:set heroku/ruby
|
18
|
+
heroku buildpacks:add --index 1 heroku/nodejs
|
19
19
|
```
|
20
20
|
|
21
|
-
Heroku will now be able to use the multiple buildpacks specified in `.buildpacks`.
|
22
|
-
|
23
21
|
For more information, see [Using Multiple Buildpacks for an App](https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app)
|
24
22
|
|
23
|
+
If for some reason you need custom buildpacks that are not officially supported by Heroku ([see this page](https://devcenter.heroku.com/articles/buildpacks)), we recommend checking out [heroku-buildpack-multi](https://github.com/ddollar/heroku-buildpack-multi).
|
24
|
+
|
25
25
|
## Fresh Rails Install
|
26
26
|
|
27
27
|
### Swap out sqlite for postgres by doing the following:
|
data/docs/tutorial-v2.md
CHANGED
@@ -146,9 +146,10 @@ Run this command that looks like this from your new heroku app
|
|
146
146
|
|
147
147
|
heroku git:remote -a my-name-react-on-rails
|
148
148
|
|
149
|
-
Set
|
149
|
+
Set heroku to use multiple buildpacks:
|
150
150
|
|
151
|
-
heroku buildpacks:set
|
151
|
+
heroku buildpacks:set heroku/ruby
|
152
|
+
heroku buildpacks:add --index 1 heroku/nodejs
|
152
153
|
|
153
154
|
|
154
155
|
### Swap out sqlite for postgres by doing the following:
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: react_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Gordon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|
@@ -385,7 +385,6 @@ files:
|
|
385
385
|
- lib/generators/react_on_rails/templates/dev_tests/spec/rails_helper.rb
|
386
386
|
- lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
|
387
387
|
- lib/generators/react_on_rails/templates/dev_tests/spec/spec_helper.rb
|
388
|
-
- lib/generators/react_on_rails/templates/heroku_deployment/.buildpacks
|
389
388
|
- lib/generators/react_on_rails/templates/heroku_deployment/Procfile
|
390
389
|
- lib/generators/react_on_rails/templates/heroku_deployment/config/puma.rb
|
391
390
|
- lib/generators/react_on_rails/templates/js_linters/client/.eslintignore
|