mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-04-28 15:28:44 +00:00
Move repo to umbrella to fix migration path issue
This commit is contained in:
parent
b3aae62927
commit
43a2bc2595
|
@ -406,7 +406,7 @@ The common and convenient way for adding HTTPS is by using a reverse proxy like
|
|||
|
||||
Caddyserver and other servers can handle generating and setting up HTTPS certificates automatically, but if you need TLS/SSL certificates for nginx, you can look get some for free with [letsencrypt](https://letsencrypt.org/). The simplest way to obtain and install a certificate is to use [Certbot.](https://certbot.eff.org). Depending on your specific setup, certbot may be able to get a certificate and configure your web server automatically.
|
||||
|
||||
If you've built from source, you should point the nginx root directory to be `_build/prod/rel/bonfire/lib/bonfire-0.1.0-*/priv/static`
|
||||
If you've built from source, you should point the nginx root directory to be `_build/prod/rel/bonfire/lib/bonfire-[current-version]/priv/static`
|
||||
|
||||
|
||||
## Admin tools
|
||||
|
|
|
@ -98,9 +98,9 @@ config :rauversion_extension, :default_layout_module, Bonfire.UI.Common.LayoutVi
|
|||
config :rauversion_extension, :user_table, "pointers_pointer"
|
||||
config :rauversion_extension, :user_key_type, :uuid
|
||||
|
||||
config :bonfire, Bonfire.Common.Repo, types: Bonfire.Geolocate.PostgresTypes
|
||||
config :bonfire_umbrella, Bonfire.Common.Repo, types: Bonfire.Geolocate.PostgresTypes
|
||||
|
||||
config :bonfire, Bonfire.Common.TestInstanceRepo,
|
||||
config :bonfire_umbrella, Bonfire.Common.TestInstanceRepo,
|
||||
types: Bonfire.Geolocate.PostgresTypes,
|
||||
database: "bonfire_test_instance"
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ config :activity_pub, sign_object_fetches: federate?
|
|||
|
||||
# config :pseudo_gettext, :locale, "en-pseudo_text" # uncomment to use https://en.wikipedia.org/wiki/Pseudolocalization and check that the app is properly localisable
|
||||
|
||||
config :bonfire, Bonfire.Common.Repo,
|
||||
config :bonfire_umbrella, Bonfire.Common.Repo,
|
||||
database: System.get_env("POSTGRES_DB", "bonfire_dev"),
|
||||
# show_sensitive_data_on_connection_error: true,
|
||||
# EctoSparkles does the logging instead
|
||||
|
|
|
@ -15,7 +15,7 @@ config :logger, level: :info
|
|||
|
||||
config :bonfire, Bonfire.Web.Endpoint, server: true
|
||||
|
||||
config :bonfire, Bonfire.Common.Repo,
|
||||
config :bonfire_umbrella, Bonfire.Common.Repo,
|
||||
# in releases migrations are not in a flavour-specific directory
|
||||
priv: "priv/repo"
|
||||
|
||||
|
|
|
@ -159,22 +159,22 @@ config :bonfire_umbrella, ecto_repos: repos
|
|||
config :paginator, ecto_repos: repos
|
||||
config :activity_pub, ecto_repos: repos
|
||||
|
||||
config :bonfire, Bonfire.Common.Repo, repo_connection_config
|
||||
config :bonfire, Bonfire.Common.TestInstanceRepo, repo_connection_config
|
||||
config :bonfire_umbrella, Bonfire.Common.Repo, repo_connection_config
|
||||
config :bonfire_umbrella, Bonfire.Common.TestInstanceRepo, repo_connection_config
|
||||
config :beacon, Beacon.Repo, repo_connection_config
|
||||
|
||||
config :bonfire, Bonfire.Common.Repo, database: database
|
||||
config :bonfire_umbrella, Bonfire.Common.Repo, database: database
|
||||
config :beacon, Beacon.Repo, database: database
|
||||
config :paginator, Paginator.Repo, database: database
|
||||
|
||||
config :bonfire, Bonfire.Common.Repo, pool_size: pool_size
|
||||
config :bonfire, Bonfire.Common.TestInstanceRepo, pool_size: pool_size
|
||||
config :bonfire_umbrella, Bonfire.Common.Repo, pool_size: pool_size
|
||||
config :bonfire_umbrella, Bonfire.Common.TestInstanceRepo, pool_size: pool_size
|
||||
config :beacon, Beacon.Repo, pool_size: pool_size
|
||||
config :paginator, Paginator.Repo, pool_size: pool_size
|
||||
|
||||
repo_path = System.get_env("DB_REPO_PATH", "priv/repo")
|
||||
config :bonfire, Bonfire.Common.Repo, priv: repo_path
|
||||
config :bonfire, Bonfire.Common.TestInstanceRepo, priv: repo_path
|
||||
config :bonfire_umbrella, Bonfire.Common.Repo, priv: repo_path
|
||||
config :bonfire_umbrella, Bonfire.Common.TestInstanceRepo, priv: repo_path
|
||||
|
||||
config :bonfire, Oban,
|
||||
repo: Bonfire.Common.Repo,
|
||||
|
@ -284,7 +284,7 @@ end
|
|||
|
||||
# start prod-only config
|
||||
if config_env() == :prod do
|
||||
config :bonfire, Bonfire.Common.Repo,
|
||||
config :bonfire_umbrella, Bonfire.Common.Repo,
|
||||
# ssl: true,
|
||||
# database: System.get_env("POSTGRES_DB", "bonfire"),
|
||||
# Note: keep this disabled if using ecto_dev_logger or EctoSparkles.Log instead #
|
||||
|
@ -295,7 +295,7 @@ end
|
|||
|
||||
# start prod and dev only config
|
||||
if config_env() != :test do
|
||||
config :bonfire, Bonfire.Common.Repo,
|
||||
config :bonfire_umbrella, Bonfire.Common.Repo,
|
||||
slow_query_ms: String.to_integer(System.get_env("DB_SLOW_QUERY_MS", "100")),
|
||||
# The timeout for establishing new connections (default: 5000)
|
||||
connect_timeout: String.to_integer(System.get_env("DB_CONNECT_TIMEOUT", "10000")),
|
||||
|
|
|
@ -30,7 +30,7 @@ config :logger, :console, truncate: :infinity
|
|||
# The MIX_TEST_PARTITION environment variable can be used
|
||||
# to provide built-in test partitioning in CI environment.
|
||||
# Run `mix help test` for more information.
|
||||
config :bonfire, Bonfire.Common.Repo,
|
||||
config :bonfire_umbrella, Bonfire.Common.Repo,
|
||||
pool: Ecto.Adapters.SQL.Sandbox,
|
||||
# show_sensitive_data_on_connection_error: true,
|
||||
# database: db,
|
||||
|
|
Loading…
Reference in a new issue