Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache node_modules #8

Merged
merged 18 commits into from
Nov 14, 2013
Merged

Cache node_modules #8

merged 18 commits into from
Nov 14, 2013

Conversation

bkeepers
Copy link

This merges in the changes from https://github.com/ddollar/heroku-buildpack-nodejs, which caches the node_modules between deploys. I didn't time it, but it makes deploys SIGNIFICANTLY faster.

davidjrice and others added 18 commits February 26, 2013 03:09
Preserve ENV vars CPATH and CPPPATH (composable buildpacks)
* ddollar/master:
  test node_modules caching
  always pass a cache dir
  only cache if there is a node_modules dir
  cache node_modules
  comments
  use npm 1.3.x by default
  ignore .DS_Store
  DRY up the hacking docs
  add a readme section for hackers
  improve documentation in README
  update 'no version specified' devcenter url
  remove extra newline
  add CONTRIBUTING.md
  cat npm-debug.log on exit
  Preserve ENV vars CPATH and CPPPATH (composable buildpacks)

Conflicts:
	README.md
@searls
Copy link
Member

searls commented Nov 14, 2013

This seems super. Was thinking of doing the same myself and I should have thought to check heroku

On Wed, Nov 13, 2013 at 8:44 PM, Brandon Keepers notifications@github.com
wrote:

This merges in the changes from https://github.com/ddollar/heroku-buildpack-nodejs, which caches the node_modules between deploys. I didn't time it, but it makes deploys SIGNIFICANTLY faster.
You can merge this Pull Request by running:
git pull https://github.com/bkeepers/heroku-buildpack-lineman cache-modules
Or you can view, comment on it, or merge it online at:
#8
-- Commit Summary --

searls added a commit that referenced this pull request Nov 14, 2013
@searls searls merged commit c5f51ea into linemanjs:master Nov 14, 2013
@searls
Copy link
Member

searls commented Nov 14, 2013

Tested this out with the @testdouble/double-takes blog

Cold push:

real    2m13.696s
user    0m0.032s
sys 0m0.044s

Warm push:

real    1m38.309s
user    0m0.025s
sys 0m0.024s

Installing bundler & sass is probably the slowest aspect of the whole ordeal

Interestingly, the warm push had its slug size cut in half (from 50MB to 25MB)

@jasonkarns
Copy link
Member

How bad do we need Sass? (I really just want LESS)

On Wed, Nov 13, 2013 at 8:56 PM, Justin Searls notifications@github.comwrote:

Tested this out with the @teestdouble/double-takes blog

Cold push:

real 2m13.696s
user 0m0.032s
sys 0m0.044s

Warm push:

real 1m38.309s
user 0m0.025s
sys 0m0.024s

Installing bundler & sass is probably the slowest aspect of the whole
ordeal

Interestingly, the warm push had its slug size cut in half (from 50MB to
25MB)


Reply to this email directly or view it on GitHubhttps://github.com//pull/8#issuecomment-28453378
.

@searls
Copy link
Member

searls commented Nov 14, 2013

If your project doesn't have Sass enabled, the heroku buildpack is smart
enough to not install it and it won't slow you down at all.

On Wed, Nov 13, 2013 at 9:02 PM, Jason Karns notifications@github.comwrote:

How bad do we need Sass? (I really just want LESS)

On Wed, Nov 13, 2013 at 8:56 PM, Justin Searls notifications@github.comwrote:

Tested this out with the @teestdouble/double-takes blog

Cold push:

real 2m13.696s
user 0m0.032s
sys 0m0.044s

Warm push:

real 1m38.309s
user 0m0.025s
sys 0m0.024s

Installing bundler & sass is probably the slowest aspect of the whole
ordeal

Interestingly, the warm push had its slug size cut in half (from 50MB to
25MB)


Reply to this email directly or view it on GitHub<
https://github.com/testdouble/heroku-buildpack-lineman/pull/8#issuecomment-28453378>

.


Reply to this email directly or view it on GitHubhttps://github.com//pull/8#issuecomment-28453655
.

@jasonkarns
Copy link
Member

Yeah, I mean I want to switch double-takes from Sass to LESS 😄

On Wed, Nov 13, 2013 at 9:04 PM, Justin Searls notifications@github.comwrote:

If your project doesn't have Sass enabled, the heroku buildpack is smart
enough to not install it and it won't slow you down at all.

On Wed, Nov 13, 2013 at 9:02 PM, Jason Karns notifications@github.comwrote:

How bad do we need Sass? (I really just want LESS)

On Wed, Nov 13, 2013 at 8:56 PM, Justin Searls notifications@github.comwrote:

Tested this out with the @teestdouble/double-takes blog

Cold push:

real 2m13.696s
user 0m0.032s
sys 0m0.044s

Warm push:

real 1m38.309s
user 0m0.025s
sys 0m0.024s

Installing bundler & sass is probably the slowest aspect of the whole
ordeal

Interestingly, the warm push had its slug size cut in half (from 50MB
to
25MB)


Reply to this email directly or view it on GitHub<

https://github.com/testdouble/heroku-buildpack-lineman/pull/8#issuecomment-28453378>

.


Reply to this email directly or view it on GitHub<
https://github.com/testdouble/heroku-buildpack-lineman/pull/8#issuecomment-28453655>

.


Reply to this email directly or view it on GitHubhttps://github.com//pull/8#issuecomment-28453730
.

@bkeepers
Copy link
Author

Without sass I'm getting 1m02.84s

@bkeepers bkeepers deleted the cache-modules branch November 14, 2013 02:10
@searls
Copy link
Member

searls commented Nov 14, 2013

If you can find an alternative with helpers as nice as bourbon's for
retina-images, transforms, and animations, I'm down. So far I haven't seen
anything in Less-or-Stylus-world that's as nice.

On Wed, Nov 13, 2013 at 9:09 PM, Jason Karns notifications@github.comwrote:

Yeah, I mean I want to switch double-takes from Sass to LESS 😄

On Wed, Nov 13, 2013 at 9:04 PM, Justin Searls notifications@github.comwrote:

If your project doesn't have Sass enabled, the heroku buildpack is smart
enough to not install it and it won't slow you down at all.

On Wed, Nov 13, 2013 at 9:02 PM, Jason Karns notifications@github.comwrote:

How bad do we need Sass? (I really just want LESS)

On Wed, Nov 13, 2013 at 8:56 PM, Justin Searls <
notifications@github.com>wrote:

Tested this out with the @teestdouble/double-takes blog

Cold push:

real 2m13.696s
user 0m0.032s
sys 0m0.044s

Warm push:

real 1m38.309s
user 0m0.025s
sys 0m0.024s

Installing bundler & sass is probably the slowest aspect of the
whole
ordeal

Interestingly, the warm push had its slug size cut in half (from
50MB
to
25MB)


Reply to this email directly or view it on GitHub<

https://github.com/testdouble/heroku-buildpack-lineman/pull/8#issuecomment-28453378>

.


Reply to this email directly or view it on GitHub<

https://github.com/testdouble/heroku-buildpack-lineman/pull/8#issuecomment-28453655>

.


Reply to this email directly or view it on GitHub<
https://github.com/testdouble/heroku-buildpack-lineman/pull/8#issuecomment-28453730>

.


Reply to this email directly or view it on GitHubhttps://github.com//pull/8#issuecomment-28453898
.

@bkeepers
Copy link
Author

Yeah, I mean I want to switch double-takes from Sass to LESS

I highly recommend stylus with nib. It's what SASS and LESS wished they were. I'm using it on bkeepers/github-notifications#21 and absolutely love it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants