Skip to content

Commit c45e151

Browse files
committed
add chrome path config
1 parent 7a0e637 commit c45e151

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

config/runtime.exs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,7 @@ if config_env() == :prod do
168168
ingest_url: System.get_env("INGEST_URL"),
169169
ingest_static_url: System.get_env("INGEST_STATIC_URL"),
170170
ingest_token: System.get_env("INGEST_TOKEN")
171+
172+
config :chromic_pdf,
173+
chrome_executable: "/app/puppeteer/chrome/linux-134.0.6998.35/chrome-linux64/chrome"
171174
end

lib/algora/application.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule Algora.Application do
2121
# Start the Finch HTTP client for sending emails
2222
{Finch, name: Algora.Finch},
2323
# Start ChromicPDF for contract PDF generation
24-
ChromicPDF,
24+
{ChromicPDF, Application.get_all_env(:chromic_pdf)},
2525
Algora.Github.TokenPool,
2626
Algora.Github.Poller.RootSupervisor,
2727
Algora.ScreenshotQueue,

0 commit comments

Comments
 (0)