upd
This commit is contained in:
parent
741a7bf9a0
commit
4a8dd17baf
3 changed files with 10 additions and 0 deletions
|
|
@ -22,6 +22,10 @@ config :zoeyscomputer, ZoeyscomputerWeb.Endpoint,
|
||||||
pubsub_server: Zoeyscomputer.PubSub,
|
pubsub_server: Zoeyscomputer.PubSub,
|
||||||
live_view: [signing_salt: "uUcDyRmg"]
|
live_view: [signing_salt: "uUcDyRmg"]
|
||||||
|
|
||||||
|
config :nanoid,
|
||||||
|
alphabet: NanoidConfig.alphabet(),
|
||||||
|
size: 7
|
||||||
|
|
||||||
# Configures the mailer
|
# Configures the mailer
|
||||||
#
|
#
|
||||||
# By default it uses the "Local" adapter which stores the emails
|
# By default it uses the "Local" adapter which stores the emails
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,10 @@ if System.get_env("PHX_SERVER") do
|
||||||
config :zoeyscomputer, ZoeyscomputerWeb.Endpoint, server: true
|
config :zoeyscomputer, ZoeyscomputerWeb.Endpoint, server: true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
config :nanoid,
|
||||||
|
alphabet: NanoidConfig.alphabet(),
|
||||||
|
size: 7
|
||||||
|
|
||||||
if config_env() == :prod do
|
if config_env() == :prod do
|
||||||
database_url =
|
database_url =
|
||||||
System.get_env("DATABASE_URL") ||
|
System.get_env("DATABASE_URL") ||
|
||||||
|
|
|
||||||
2
rel/env.sh.eex
Normal file
2
rel/env.sh.eex
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
export NANOID_ALPHABET="_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||||
|
export NANOID_SIZE="7"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue