From 7ddfa36653ba925abf6a0d4a93e66a845a4ae2c9 Mon Sep 17 00:00:00 2001 From: Nicholas Rutherford Date: Thu, 6 Oct 2016 10:31:36 +0200 Subject: [PATCH] doc: heroku slug pruning with buildpack closes #491 --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ba8e600..b9a94da5 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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/.rb +Place the following in your deploy/.rb ```ruby set :linked_dirs, %w{/node_modules /bower_components} ```