chore: prepare for prod
Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
10 files changed
+10491
-6662
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ use Mix.Config
|
||||
# which you should run after static files are built and
|
||||
# before starting your production server.
|
||||
config :ketbin, KetbinWeb.Endpoint,
|
||||
url: [host: "example.com", port: 80],
|
||||
url: [host: "dev.katb.in", port: 80],
|
||||
cache_static_manifest: "priv/static/cache_manifest.json"
|
||||
|
||||
# Do not print debug messages in production
|
||||
|
||||
+6
-4
@@ -12,9 +12,11 @@ database_url =
|
||||
"""
|
||||
|
||||
config :ketbin, Ketbin.Repo,
|
||||
# ssl: true,
|
||||
ssl: true,
|
||||
verify: :verify_peer,
|
||||
url: database_url,
|
||||
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")
|
||||
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
|
||||
cacertfile: "priv/cert.pem"
|
||||
|
||||
secret_key_base =
|
||||
System.get_env("SECRET_KEY_BASE") ||
|
||||
@@ -28,14 +30,14 @@ config :ketbin, KetbinWeb.Endpoint,
|
||||
port: String.to_integer(System.get_env("PORT") || "4000"),
|
||||
transport_options: [socket_opts: [:inet6]]
|
||||
],
|
||||
secret_key_base: secret_key_base
|
||||
secret_key_base: secret_key_base,
|
||||
server: true
|
||||
|
||||
# ## Using releases (Elixir v1.9+)
|
||||
#
|
||||
# If you are doing OTP releases, you need to instruct Phoenix
|
||||
# to start each relevant endpoint:
|
||||
#
|
||||
config :ketbin, KetbinWeb.Endpoint, server: true
|
||||
#
|
||||
# Then you can assemble a release by calling `mix release`.
|
||||
# See `mix help release` for more information.
|
||||
Reference in new issue
Block a user