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

Don't build the Ember app twice #1603

Merged
merged 2 commits into from
Aug 31, 2015
Merged

Don't build the Ember app twice #1603

merged 2 commits into from
Aug 31, 2015

Conversation

surfacedamage
Copy link

We were seeing many repeated builds while running the app locally. When
we started seeing repeated builds while running tests, that was the
final straw. After some investigation, we ended up at the EmberCli Rails
gem as the culprit.

It was recently discovered that the ember-cli-uglify addon was causing
lots of duplicated work to be done.

More details can be found in the original issue:
github.com/tricknotes/ember-cli-rails/issues/184

The EmberCli Rails README has even been updated to advise this:
github.com/rwz/ember-cli-rails#experiencing-slow-builddeploy-times

This has reduced the local build time from 40+ seconds to 12 seconds.
We no longer see duplicate builds happening. Watchman no longer throws
many thousands of errors about recrawling the tree.

@surfacedamage
Copy link
Author

This should also decrease the time it takes to deploy.

@theharq
Copy link

theharq commented Aug 31, 2015

nice 👏

@nummi
Copy link

nummi commented Aug 31, 2015

I love you.

@egh
Copy link
Contributor

egh commented Aug 31, 2015

+1000

I reported something similar before but didn't really get any help from the ember-cli-rails people: tricknotes/ember-cli-rails#124

@egh
Copy link
Contributor

egh commented Aug 31, 2015

You'll probably want to enable config.assets.js_compressor in environments/production.rb too.

@surfacedamage
Copy link
Author

@egh nice catch!

Edgecase Pairing added 2 commits August 31, 2015 11:52
We were seeing many repeated builds while running the app locally. When
we started seeing repeated builds while running tests, that was the
final straw. After some investigation, we ended up at the EmberCli Rails
gem as the culprit.

It was recently discovered that the `ember-cli-uglify` addon was causing
lots of duplicated work to be done. 

More details can be found in the original issue:
github.com/tricknotes/ember-cli-rails/issues/184

The EmberCli Rails README has even been updated to advise this:
github.com/rwz/ember-cli-rails#experiencing-slow-builddeploy-times

This has reduced the local build time from 40+ seconds to 12 seconds.
We no longer see duplicate builds happening. Watchman no longer throws
many thousands of errors about recrawling the tree.
This was previously turned off, since we were using the
ember-cli-uglifier addon. Now that this is removed, we should rely on
Rails for all asset compression.
@neo-tahi neo-tahi force-pushed the you-only-build-once branch from 2fd5493 to c64b802 Compare August 31, 2015 15:52
surfacedamage added a commit that referenced this pull request Aug 31, 2015
@surfacedamage surfacedamage merged commit 1ab7005 into master Aug 31, 2015
@surfacedamage surfacedamage deleted the you-only-build-once branch August 31, 2015 16:07
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.

4 participants