Skip to content

Commit

Permalink
doc: heroku slug pruning with buildpack
Browse files Browse the repository at this point in the history
  • Loading branch information
nruth committed Oct 6, 2016
1 parent d73b72f commit 7ddfa36
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,11 @@ applications into the project.

[buildpack]: https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app#adding-a-buildpack

#### Slug size

[Heroku slug size is limited](https://devcenter.heroku.com/articles/slug-compiler#slug-size). The current compilation solution leaves some assets behind in the Heroku slug. Depending on your project and how many Ember-CLI apps you are building, erasing them can prune 10s to 100s of MB from your compiled slug.
A build-pack solution for this is discussed in [issue 491](https://github.com/thoughtbot/ember-cli-rails/issues/491).

### Capistrano

EmberCLI-Rails executes both `npm install` and `bower install` during EmberCLI's
Expand All @@ -304,7 +309,7 @@ contains the directory or directories that contain the `bower` and `npm`
executables.

#### For faster deployments
Place the following in your deploy/<environment>.rb
Place the following in your deploy/<environment>.rb
```ruby
set :linked_dirs, %w{<ember-app-name>/node_modules <ember-app-name>/bower_components}
```
Expand Down

0 comments on commit 7ddfa36

Please sign in to comment.