livebook/config/runtime.exs
Jonatan Kłosko 8b37e32e3a
Escript (#77)
* Set up Escript packaging

* Use MD5 digest sa ETAG

* Make sure changes to the static files recompile the relevant module

* Manually start the application in Escript

* Set up basic CLI

* Run formatter

* Start Elixir app before anything else

* Improve version output

* Build Escript to project root directory

* Improve assets handling

* Move plug related modules under plugs directory

* Include bundled assets in the repository

* Use the same plug with different static providers in prod and dev

* Refactor providers

* Rename StaticProvidedPlug to StaticPlug
2021-03-17 01:53:44 +01:00

20 lines
597 B
Elixir

import Config
if config_env() == :prod do
# secret_key_base =
# System.get_env("SECRET_KEY_BASE") ||
# raise """
# environment variable SECRET_KEY_BASE is missing.
# You can generate one by calling: mix phx.gen.secret
# """
# config :livebook, LivebookWeb.Endpoint,
# http: [
# # Enable IPv6 and bind on all interfaces.
# # Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access.
# ip: {0, 0, 0, 0, 0, 0, 0, 0},
# port: String.to_integer(System.get_env("PORT") || "4000")
# ],
# secret_key_base: secret_key_base
end