mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-03-06 20:03:22 +08:00
* 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
19 lines
597 B
Elixir
19 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
|