This commit is contained in:
Mayel de Borniol 2024-01-16 16:59:30 +00:00
parent 65f4b1b6b9
commit b6d6f7376d
4 changed files with 10 additions and 4 deletions

View file

@ -87,6 +87,9 @@ COPY lib lib
# COPY assets assets
# RUN ls -la assets/static
# workaround for compilation error
RUN MIX_ENV=prod mix deps.clean needle_ulid --build
# compile app (needs to be before building assets so it includes Surface hooks & component CSS)
RUN MIX_ENV=prod mix compile

View file

@ -11,6 +11,8 @@ env = config_env()
# other config files.
repo = Bonfire.Common.Repo
import_config "config_basics.exs"
config :bonfire,
otp_app: :bonfire,
umbrella_otp_app: :bonfire_umbrella,
@ -85,9 +87,6 @@ config :bonfire, ecto_repos: repos
config :bonfire_umbrella, ecto_repos: repos
config :paginator, ecto_repos: repos
config :activity_pub, ecto_repos: repos
config :ecto_sparkles, :otp_app, :bonfire
config :ecto_sparkles, :env, env
config :ecto_sparkles, :umbrella_otp_app, :bonfire_umbrella
config :rauversion_extension, :repo_module, repo
config :activity_pub, :repo, repo
config :activity_pub, :endpoint_module, Bonfire.Web.Endpoint

View file

@ -1,3 +1,7 @@
import Config
config :phoenix, :json_library, Jason
config :ecto_sparkles, :otp_app, :bonfire
config :ecto_sparkles, :env, config_env()
config :ecto_sparkles, :umbrella_otp_app, :bonfire_umbrella

View file

@ -30,7 +30,7 @@ APP_DOCKER_IMAGE := env_var_or_default('APP_DOCKER_IMAGE', APP_DOCKER_REPO+":lat
DB_DOCKER_IMAGE := if arch() == "aarch64" { "ghcr.io/baosystems/postgis:12-3.3" } else { env_var_or_default('DB_DOCKER_IMAGE', "postgis/postgis:12-3.3-alpine") }
# DB_DOCKER_IMAGE := env_var_or_default('DB_DOCKER_IMAGE', "supabase/postgres")
GRAPH_DB_URL := if WITH_DOCKER != "total" { env_var_or_default('GRAPH_DB_URL', "bolt://localhost:7687") } else { env_var_or_default('GRAPH_DB_URL', "bolt://graph:7687") }
# GRAPH_DB_URL := if WITH_DOCKER != "total" { env_var_or_default('GRAPH_DB_URL', "bolt://localhost:7687") } else { env_var_or_default('GRAPH_DB_URL', "bolt://graph:7687") }
## Other configs - edit these here if necessary
EXT_PATH := "extensions/"