-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* just enough of the cms caching pr to prove that redis is working * fix mix lock * test that logger is working for endpoints * convert to test cache * set log level to notice * catch redis connection error and log * PR feedback * empty line * make test that redis disconnect is logged * default on basic auth for testing * force ssl * try to go through api * missing dep * reset router info * just slap those creds in there * runtime config issue for prod * log basic auth so we can make sure what we are getting from drupal * more deployment checking changes * hard code redis host to see if connection works * remove hard coded redis host
- Loading branch information
1 parent
6258f82
commit de71c7a
Showing
15 changed files
with
113 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
defmodule CMS.Cache do | ||
use Nebulex.Cache, | ||
otp_app: :cms, | ||
adapter: NebulexRedisAdapter | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use Mix.Config | ||
import Config | ||
|
||
# For development, we disable any cache and enable | ||
# debugging and code reloading. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import Config | ||
|
||
config :cms, CMS.Cache, | ||
conn_opts: [ | ||
host: System.get_env("REDIS_HOST", "127.0.0.1"), | ||
port: 6379 | ||
], | ||
stats: false, | ||
telemetry: false | ||
|
||
if config_env() == :test do | ||
config :site, SiteWeb.Router, | ||
cms_basic_auth: [ | ||
username: "username", | ||
password: "password" | ||
] | ||
else | ||
config :site, SiteWeb.Router, | ||
cms_basic_auth: [ | ||
username: System.fetch_env!("CMS_BASIC_AUTH_USERNAME"), | ||
password: System.fetch_env!("CMS_BASIC_AUTH_PASSWORD") | ||
] | ||
end | ||
|
||
if config_env() == :prod do | ||
config :alerts, bus_stop_change_bucket: System.get_env("S3_PREFIX_BUSCHANGE") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters