projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove all endpoints marked as deprecated (#91)
[akkoma]
/
config
/
prod.exs
diff --git
a/config/prod.exs
b/config/prod.exs
index 25873f360eabbebced42d3f3af5e08530d0944a9..968f596e00bc804bb71e06e112b2487f8939700f 100644
(file)
--- a/
config/prod.exs
+++ b/
config/prod.exs
@@
-1,4
+1,4
@@
-
use Mix.
Config
+
import
Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
@@
-20,8
+20,8
@@
config :pleroma, Pleroma.Web.Endpoint,
config :phoenix, serve_endpoints: true
# Do not print debug messages in production
config :phoenix, serve_endpoints: true
# Do not print debug messages in production
-config :logger, :console, level: :
warn
-config :logger, :ex_syslogger, level: :
warn
+config :logger, :console, level: :
info
+config :logger, :ex_syslogger, level: :
info
# ## SSL Support
#
# ## SSL Support
#
@@
-63,7
+63,12
@@
config :logger, :ex_syslogger, level: :warn
# Finally import the config/prod.secret.exs
# which should be versioned separately.
# Finally import the config/prod.secret.exs
# which should be versioned separately.
-import_config "prod.secret.exs"
+if File.exists?("./config/prod.secret.exs") do
+ import_config "prod.secret.exs"
+else
+ "`config/prod.secret.exs` not found. You may want to create one by running `mix pleroma.instance gen`"
+ |> IO.warn([])
+end
if File.exists?("./config/prod.exported_from_db.secret.exs"),
do: import_config("prod.exported_from_db.secret.exs")
if File.exists?("./config/prod.exported_from_db.secret.exs"),
do: import_config("prod.exported_from_db.secret.exs")