summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJames Every <devstopfix@gmail.com>2020-03-25 16:19:15 +0000
committerGitHub <noreply@github.com>2020-03-25 16:19:15 +0000
commit20c4068e5d8bd725c42513301b288094c8857041 (patch)
treebd226f972dfeaed7b11e76158ac1bd2243b89420 /config
parentMerge commit '82cea2a0db4af442a3ea89a340e54fcd11cf8180' (diff)
Convert to ports (#5)
* Remove erlexec dependency * feat: async verify worker has started * test: move infinite to script * fix: timeout response * fix: unix compile [Closes #169398412] * feat: allow database patterns as worker param This allows us to expand paths in an application, which is not possible from the configuration file. * OTP 22 compatible with Elixir 1.7-1.10 * Install make on CI server libmagic-dev contains magic.h Fix this error: ** (Mix) Could not compile with "make" (exit status: 2). * Fix make install * Fix plurality * Fix credo warning * Allow multiple error messages OS X and Linux return different errors messages. * Allow named GenServer processes * Types * Disable test broken in ci Works locally, not in CI. test/gen_magic_test.exs:50 ** (EXIT from #PID<0.1672.0>) shutdown
Diffstat (limited to 'config')
-rw-r--r--config/config.exs14
1 files changed, 7 insertions, 7 deletions
diff --git a/config/config.exs b/config/config.exs
index 3bf1711..72ed18e 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -1,13 +1,13 @@
-# This file is responsible for configuring your application
-# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :gen_magic,
worker_name: "apprentice",
worker_timeout: 5000,
recycle_threshold: 10,
- database_patterns: [
- "/usr/local/share/misc/magic.mgc",
- "/usr/share/file/magic.mgc",
- "/usr/share/misc/magic.mgc"
- ]
+ database_patterns:
+ [
+ "/usr/local/share/misc/magic.mgc",
+ "/usr/share/file/magic.mgc",
+ "/usr/share/misc/magic.mgc"
+ ]
+ |> Enum.find(&File.exists?/1)