-
Notifications
You must be signed in to change notification settings - Fork 133
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
environment
set to undefinded in config/environment.js
when running ember deploy
#474
Comments
I have never run into this. which version of ember-cli-deploy are you on? edit I see that you are running 1.0.0. Are you calling that config somewhere manually? |
@loqtor Did you fix the issue? |
Hey man, No, I'm still keeping the workaround there. It seems to work fine, but just that is odd to have that early I can live with that, but maybe you can have a look since it seems quite strange. Thanks. |
I have also experienced this issue. I am unsure if environment being |
I am also having this issue. Not sure why environment is resulting in |
This issue is also happening to me. The only way to overcome this issue is to actually specify an environment through the command line, which isn't ideal |
Can you post your (sanitized) config/deploy.js file?
…On Thu, Nov 16, 2017 at 3:19 AM Dexter Miguel ***@***.***> wrote:
This issue is also happening to me. The only way to overcome this issue is
to actually specify an environment through the command line, which isn't
ideal
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#474 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAABYX6K9jUjOaq8Q75rHmXD4QDxPwqwks5s2_AZgaJpZM4OHU8f>
.
|
any news on this issue? |
I'm seeing this problem, but I am not using ember-cli-deploy. Landed here from a Google search. So, maybe there is an interaction between ember-cli and some config that is not unique to this addon. |
I just created a new app from scratch and saw the same,
|
Hi guys,
I'm not sure if this issue should be raised here (or even if it isn't something I am doing wrong), but I'd rather share what's going on.
Basically, when running
ember deploy [deployment_target]
there are two things that called my attention:1 - It seems to go through
config/environment.js
several times.2 - The first time it runs
environment
is undefined.This causes the configuration for endpoints to be the default one for any
deployment_target
, making my application in other environment than
develop
not to work properly.I'm currently deploying to S3 using
ember-cli-deploy-s3
.Am I missing something here? Please, bear in mind this is the first time I'm using the addon, so let me know in case I'm way off here. :)
Here's my
package.json
:Here's my
environment.js
(note the early return at the beginning):And here's my
deploy.js
(as said, I'm deploying to S3):As per the
environment.js
I seemed to find a workaround for now (I can deploy properly with the early return I added), but I'm just curious to know if I should be doing something different.Any comments would be greatly appreciated.
Cheers!
The text was updated successfully, but these errors were encountered: