README.md in ember-cli-rails-0.1.13 vs README.md in ember-cli-rails-0.2.0
- old
+ new
@@ -1,9 +1,9 @@
# EmberCLI Rails
EmberCLI Rails is an integration story between (surprise suprise) EmberCLI and
-Rails. It is designed to provide an easy way to organize your Rails backed
+Rails 3.1 and up. It is designed to provide an easy way to organize your Rails backed
EmberCLI application with a specific focus on upgradeability. Rails and Ember
[slash EmberCLI] are maintained by different teams with different goals. As
such, we believe that it is important to ensure smooth upgrading of both
aspects of your application.
@@ -195,20 +195,19 @@
directories %w[app config lib spec your-appname/app]
```
## Heroku
-In order to deploy EmberCLI Rails app to Heroku you need to follow the steps
-below:
+In order to deploy EmberCLI Rails app to Heroku:
First, enable Heroku Multi Buildpack by running the following command:
```sh
heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-multi
```
-Next, check in `.buildpacks` file to specify which buildpacks to use:
+Next, specify which buildpacks to use by creating a `.buildpacks` file in the project root containing:
```
https://github.com/heroku/heroku-buildpack-nodejs
https://github.com/heroku/heroku-buildpack-ruby
```
@@ -218,35 +217,31 @@
```ruby
gem "rails_12factor", group: :production
```
-Add a `package.json` to the root of your Rails project. This is to make sure
-it'll be detected by the NodeJS buildpack.
+Add a `package.json` file containing `{}` to the root of your Rails project.
+This is to make sure it'll be detected by the NodeJS buildpack.
-```javascript
-{
- "dependencies": {
- "bower": "*"
- }
-}
-```
+Make sure you have `bower` as a npm dependency of your ember-cli app.
Add a `postinstall` task to your EmberCLI app's `package.json`. This will
ensure that during the deployment process, Heroku will install all dependencies
found in both `node_modules` and `bower_components`.
```javascript
{
# ...
"scripts": {
# ...
- "postinstall": "../../node_modules/bower/bin/bower install"
+ "postinstall": "node_modules/bower/bin/bower install"¬
}
}
```
-Now you should be ready to deploy.
+ember-cli-rails adds your ember apps' build process to the rails asset compilation process.
+
+Now you should be ready to deploy.
## Additional Information
When running in the development environment, EmberCLI Rails runs `ember build`
with the `--output-path` and `--watch` flags on. The `--watch` flag tells