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

Start apps lazily. #26

Closed
1 of 2 tasks
rwjblue opened this issue Dec 18, 2014 · 4 comments
Closed
1 of 2 tasks

Start apps lazily. #26

rwjblue opened this issue Dec 18, 2014 · 4 comments
Assignees

Comments

@rwjblue
Copy link
Contributor

rwjblue commented Dec 18, 2014

If I have multiple ember-cli apps mounted at various routes (I am working on an app with 6), starting them all for each rails s can take quite a bit of time.

If each ember app takes 3-5 seconds to build, and I have 10 apps running it will take 30-50 seconds to boot rails server (we do a sync build AND an async watch for all apps on boot). This is regardless of hitting any of the ember routes (meaning, if I just want to hit a standard rails route I have to wait the total time).

Dissecting this a bit:

DISCLAIMER:

I could be missing something obvious that makes these points untrue.

@rwz
Copy link
Collaborator

rwz commented Dec 18, 2014

I believe that the locking middleware in #25 fixes this for us.

Right.

Only start apps when their routes are visited. Removes the need for SKIP_EMBER environment variable.

Awesome idea and totally doable.

@rwz rwz self-assigned this Dec 18, 2014
@rondale-sc
Copy link
Collaborator

@rwz
Copy link
Collaborator

rwz commented Feb 9, 2015

Alright, that didn't work out as expected. Closing this issue for now. Will reopen/recreate if a better way to achieve the same effect is found.

@rwz rwz closed this as completed Feb 9, 2015
@rondale-sc
Copy link
Collaborator

@rwz Understatement. lol. Good learning experience though.

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

No branches or pull requests

3 participants