# Rebuild is showing "Environment: development" during ember-cli build

**URL:** https://meta.discourse.org/t/rebuild-is-showing-environment-development-during-ember-cli-build/294183
**Category:** Self-hosting
**Created:** [February 5, 2024, 8:50am UTC](https://meta.discourse.org/t/rebuild-is-showing-environment-development-during-ember-cli-build/294183 "2024-02-05T08:50:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [February 5, 2024, 8:50am UTC](https://meta.discourse.org/t/rebuild-is-showing-environment-development-during-ember-cli-build/294183/1 "2024-02-05T08:50:14Z")

</div>

> [@Upgrade from 3.2.0.beta3-dev to 3.2.0.beta3 failed due to out of memory](https://meta.discourse.org/t/upgrade-from-3-2-0-beta3-dev-to-3-2-0-beta3-failed-due-to-out-of-memory/286643/1):
>
> ```plaintext
> $ /var/www/discourse/app/assets/javascripts/node_modules/.bin/ember build
> Environment: development
> 
> ```

BTW honest question - what is the idea behind not running ember in production mode with `-prod` ?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [February 5, 2024, 1:16pm UTC](https://meta.discourse.org/t/rebuild-is-showing-environment-development-during-ember-cli-build/294183/2 "2024-02-05T13:16:22Z")

</div>

We use the `EMBER_ENV` environment variable instead of the `-prod` flag. The result should be the same. I certainly see a production build running here on Meta and other sites.

I’m not sure what’s printing `Environment: development` to the build log… we should investigate 👀

> <https://github.com/discourse/discourse/blob/9961163e828a42c5a19b07a349b5b8ff07380aee/lib/tasks/assets.rake#L30-L30>

Moved this to its own topic to track

---

<div class="post-metadata">

### Author: ![hunterboerner](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hunterboerner/32/114646_2.png) [@hunterboerner](https://meta.discourse.org/u/hunterboerner)
#### Post date: [March 21, 2024, 10:49pm UTC](https://meta.discourse.org/t/rebuild-is-showing-environment-development-during-ember-cli-build/294183/4 "2024-03-21T22:49:37Z")

</div>

I’m also showing environment development when upgrading discourse.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [March 25, 2024, 4:38pm UTC](https://meta.discourse.org/t/rebuild-is-showing-environment-development-during-ember-cli-build/294183/5 "2024-03-25T16:38:36Z")

</div>

It shouldn’t make any functional difference… but here’s a PR to use `-prod` and therefore fix up the logging:

[https://github.com/discourse/discourse/pull/26344](https://github.com/discourse/discourse/pull/26344)

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [March 26, 2024, 8:00am UTC](https://meta.discourse.org/t/rebuild-is-showing-environment-development-during-ember-cli-build/294183/6 "2024-03-26T08:00:50Z")

</div>

This topic was automatically closed after 15 hours. New replies are no longer allowed.
