# Filesystems in Elixir Environments?

**URL:** <https://forum.elixirforum.com/t/filesystems-in-elixir-environments/5796>\
**Category:** Questions\
**Tags:** otp\
**Created:** [June 6, 2017, 10:14am UTC](https://forum.elixirforum.com/t/filesystems-in-elixir-environments/5796 "2017-06-06T10:14:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![idi527](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/i/85e7bf/32.png) [@idi527](https://forum.elixirforum.com/u/idi527)\
**Post date:** [June 6, 2017, 10:25am UTC](https://forum.elixirforum.com/t/filesystems-in-elixir-environments/5796/2 "2017-06-06T10:25:06Z")

</div>

In a typical `mix.exs` file there is a `project` function which returns a keyword list with `:build_embedded ` in it

```elixir
def project do
  [app: :pusher,
   version: "0.1.0",
   elixir: "~> 1.4",
   build_embedded: Mix.env == :prod, # <-- here
   start_permanent: Mix.env == :prod,
   deps: deps()]
end

```

`Mix.env` returns the current environment, it can be `:dev`, `:test`, `:prod`, or whatever else. `Mix.env == :prod` evaluates to `true` if the current environment is `:prod`.

---

_[View the full topic](https://forum.elixirforum.com/t/filesystems-in-elixir-environments/5796)._
