Install Oban with dedicated repo
This commit is contained in:
@@ -68,6 +68,19 @@ if config_env() == :prod do
|
||||
cache_size: -8000,
|
||||
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5")
|
||||
|
||||
background_database_path =
|
||||
System.get_env("BACKGROUND_DATABASE_PATH") ||
|
||||
raise """
|
||||
environment variable BACKGROUND_DATABASE_PATH is missing.
|
||||
For example: /etc/music_library/music_library_background.db
|
||||
"""
|
||||
|
||||
config :music_library, MusicLibrary.BackgroundRepo,
|
||||
database: background_database_path,
|
||||
# 16MB * pool_size = base memory usage
|
||||
cache_size: -8000,
|
||||
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5")
|
||||
|
||||
# The secret key base is used to sign/encrypt cookies and other secrets.
|
||||
# A default value is used in config/dev.exs and config/test.exs but you
|
||||
# want to use a different value for prod and you most likely don't want
|
||||
|
||||
Reference in New Issue
Block a user