Skip to content

Commit

Permalink
Second attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
tsrandrei committed Jun 17, 2024
1 parent aee5c29 commit 07ac1fe
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
test:
resource_class: medium
docker:
- image: hexpm/elixir:1.14.1-erlang-25.3.2-alpine-3.17.3
- image: hexpm/elixir:1.16.2-erlang-26.2.5-alpine-3.19.1
environment:
MIX_ENV: test
DB_USER: postgres
DATABASE_URL: postgres://postgres@localhost/auctionet_test
- image: postgres:14.7-alpine
- image: postgres:15.5-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
Expand Down
1 change: 1 addition & 0 deletions config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ config :ex_gridhook, ExGridhook.Repo,
url: System.get_env("DATABASE_CONNECTION_POOL_URL") || System.get_env("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
ssl: true,
ssl_opts: [verify: :verify_none],

This comment has been minimized.

Copy link
@tsrandrei

tsrandrei Jun 17, 2024

Author Contributor

This what makes Heroku unbreak

prepare: :unnamed
4 changes: 2 additions & 2 deletions dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

docker_services:
postgres:
image: "postgres:14.7-alpine" # keep in sync with .circleci/config.yml
version: "14.7"
image: "postgres:15.5-alpine" # keep in sync with .circleci/config.yml
version: "15.5"
options: "-e POSTGRES_PASSWORD=dev --publish 5432 -v $DATABASE_ROOT/ex_gridhook/postgres:/var/lib/postgresql/data"
6 changes: 3 additions & 3 deletions elixir_buildpack.config
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Keep in sync with .circleci/config.yml

# https://github.com/erlang/otp/tags
erlang_version=25.1.2
erlang_version=26.2.5

# https://github.com/elixir-lang/elixir/tags
elixir_version=1.14.1
elixir_version=1.16.2

# https://hub.docker.com/r/hexpm/elixir/tags: find a version supporting the combination above
alpine_version=3.17.0
alpine_version=3.19.1

always_build_deps=false
config_vars_to_export=(SECRET_KEY_BASE AUTH_KEY)
2 changes: 1 addition & 1 deletion test/ex_gridhook_web/controllers/event_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ defmodule ExGridhookWeb.EventControllerTest do
"sg_message_id" => "sendgrid_internal_message_id",
"event" => "processed",
"category" => "category",
"associated_records" => '["Item:123", "Item:456"]'
"associated_records" => ~c'["Item:123", "Item:456"]'
},
%{
"email" => "[email protected]",
Expand Down

2 comments on commit 07ac1fe

@tsrandrei
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It worked! The issue was ssl_opts: [verify: :verify_none],. Now gridhook have updated postgress and almost latest elixir onboarded. should now be ready to accomodate the latest changes, adding a UI to it

@tsrandrei
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.