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

Changing the FastBoot runtime environment #218

Open
ryanto opened this issue Apr 18, 2019 · 3 comments
Open

Changing the FastBoot runtime environment #218

ryanto opened this issue Apr 18, 2019 · 3 comments
Labels

Comments

@ryanto
Copy link
Contributor

ryanto commented Apr 18, 2019

I've got a question about how to best load an Ember application built from Ember CLI into FastBoot for ember-cli-fastboot-testing

I have an Ember application that's built using ember-cli, so it's build time environment is development. When I load that dist path into new FastBoot() it uses the the application's config environment of development, which makes sense!

However, I'm wondering if I can take that same build and load it into FastBoot with a run time environment of test. I guess this question boils down to: Do I have the ability to tell FastBoot to use a different run time environment + config from what the app was built with?

What I'm trying to accomplish: I want fastboot-testing to piggy back off of the dist built by ember-cli-fastboot, but when it loads that dist I want it to use a runtime env of test.

@jkeen
Copy link

jkeen commented Jan 14, 2020

Came here from stumbling onto this problem after getting test failures with ember-cli-fastboot-testing when running tests from localhost:4200/tests. It'd be great if we could do this ^

@viniciussbs
Copy link

Same here. I have some logs that run on FastBoot only for test env and they don't run when I test with localhost:4200/tests.

@xg-wang
Copy link
Member

xg-wang commented Feb 9, 2021

I think ember test and ember build both accept --envrironment where you can specify development vs test https://cli.emberjs.com/release/advanced-use/cli-commands-reference/#embertest

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

No branches or pull requests

4 participants