rename to memex

This commit is contained in:
2022-07-25 19:31:54 -04:00
parent 65ec4286da
commit 1a423f703b
122 changed files with 416 additions and 416 deletions

View File

@ -7,23 +7,23 @@
# General application configuration
import Config
config :lokal,
ecto_repos: [Lokal.Repo],
config :memex,
ecto_repos: [Memex.Repo],
generators: [binary_id: true]
# Configures the endpoint
config :lokal, LokalWeb.Endpoint,
config :memex, MemexWeb.Endpoint,
url: [scheme: "https", host: System.get_env("HOST") || "localhost", port: "443"],
http: [port: String.to_integer(System.get_env("PORT") || "4000")],
secret_key_base: "KH59P0iZixX5gP/u+zkxxG8vAAj6vgt0YqnwEB5JP5K+E567SsqkCz69uWShjE7I",
render_errors: [view: LokalWeb.ErrorView, accepts: ~w(html json), layout: false],
pubsub_server: Lokal.PubSub,
render_errors: [view: MemexWeb.ErrorView, accepts: ~w(html json), layout: false],
pubsub_server: Memex.PubSub,
live_view: [signing_salt: "zOLgd3lr"],
registration: System.get_env("REGISTRATION") || "invite"
config :lokal, Lokal.Application, automigrate: false
config :memex, Memex.Application, automigrate: false
config :lokal, :generators,
config :memex, :generators,
migration: true,
binary_id: true,
sample_binary_id: "11111111-1111-1111-1111-111111111111"
@ -35,7 +35,7 @@ config :lokal, :generators,
#
# For production it's recommended to configure a different adapter
# at the `config/runtime.exs`.
config :lokal, Lokal.Mailer, adapter: Swoosh.Adapters.Local
config :memex, Memex.Mailer, adapter: Swoosh.Adapters.Local
# Swoosh API client is needed for adapters other than SMTP.
config :swoosh, :api_client, false
@ -44,8 +44,8 @@ config :swoosh, :api_client, false
config :gettext, :default_locale, "en_US"
# Configure Oban
config :lokal, Oban,
repo: Lokal.Repo,
config :memex, Oban,
repo: Memex.Repo,
plugins: [Oban.Plugins.Pruner],
queues: [default: 10, mailers: 20]

View File

@ -1,7 +1,7 @@
import Config
# Configure your database
config :lokal, Lokal.Repo,
config :memex, Memex.Repo,
show_sensitive_data_on_connection_error: true,
pool_size: 10
@ -11,7 +11,7 @@ config :lokal, Lokal.Repo,
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with esbuild to bundle .js and .css sources.
config :lokal, LokalWeb.Endpoint,
config :memex, MemexWeb.Endpoint,
check_origin: false,
code_reloader: true,
debug_errors: true,
@ -54,13 +54,13 @@ config :lokal, LokalWeb.Endpoint,
# different ports.
# Watch static and templates for browser reloading.
config :lokal, LokalWeb.Endpoint,
config :memex, MemexWeb.Endpoint,
live_reload: [
patterns: [
~r"priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$",
~r"priv/gettext/.*(po)$",
~r"lib/lokal_web/(live|views)/.*(ex)$",
~r"lib/lokal_web/templates/.*(eex)$"
~r"lib/memex_web/(live|views)/.*(ex)$",
~r"lib/memex_web/templates/.*(eex)$"
]
]

View File

@ -9,7 +9,7 @@ import Config
# manifest is generated by the `mix phx.digest` task,
# which you should run after static files are built and
# before starting your production server.
config :lokal, LokalWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json"
config :memex, MemexWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json"
# Do not print debug messages in production
config :logger, level: :info
@ -19,7 +19,7 @@ config :logger, level: :info
# To get SSL working, you will need to add the `https` key
# to the previous section and set your `:url` port to 443:
#
# config :lokal, LokalWeb.Endpoint,
# config :memex, MemexWeb.Endpoint,
# ...,
# url: [host: "example.com", port: 443],
# https: [
@ -43,7 +43,7 @@ config :logger, level: :info
# We also recommend setting `force_ssl` in your endpoint, ensuring
# no data is ever sent via http, always redirecting to https:
#
# config :lokal, LokalWeb.Endpoint,
# config :memex, MemexWeb.Endpoint,
# force_ssl: [hsts: true]
#
# Check `Plug.SSL` for all available options in `force_ssl`.

View File

@ -9,7 +9,7 @@ import Config
# Start the phoenix server if environment is set and running in a release
if System.get_env("PHX_SERVER") && System.get_env("RELEASE_NAME") do
config :lokal, LokalWeb.Endpoint, server: true
config :memex, MemexWeb.Endpoint, server: true
end
# Set default locale
@ -20,28 +20,28 @@ maybe_ipv6 = if System.get_env("ECTO_IPV6") == "true", do: [:inet6], else: []
database_url =
if config_env() == :test do
System.get_env("TEST_DATABASE_URL") ||
"ecto://postgres:postgres@localhost/lokal_test#{System.get_env("MIX_TEST_PARTITION")}"
"ecto://postgres:postgres@localhost/memex_test#{System.get_env("MIX_TEST_PARTITION")}"
else
System.get_env("DATABASE_URL") ||
"ecto://postgres:postgres@lokal-db/lokal"
"ecto://postgres:postgres@memex-db/memex"
end
host =
System.get_env("HOST") ||
raise "No hostname set! Must be the domain and tld like `lokal.bubbletea.dev`."
raise "No hostname set! Must be the domain and tld like `memex.bubbletea.dev`."
interface =
if config_env() in [:dev, :test],
do: {0, 0, 0, 0},
else: {0, 0, 0, 0, 0, 0, 0, 0}
config :lokal, Lokal.Repo,
config :memex, Memex.Repo,
# ssl: true,
url: database_url,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
socket_options: maybe_ipv6
config :lokal, LokalWeb.Endpoint,
config :memex, MemexWeb.Endpoint,
url: [scheme: "https", host: host, port: 443],
http: [
# See the documentation on https://hexdocs.pm/plug_cowboy/Plug.Cowboy.html
@ -65,13 +65,13 @@ if config_env() == :prod do
You can generate one by calling: mix phx.gen.secret
"""
config :lokal, LokalWeb.Endpoint, secret_key_base: secret_key_base
config :memex, MemexWeb.Endpoint, secret_key_base: secret_key_base
# Automatically apply migrations
config :lokal, Lokal.Application, automigrate: true
config :memex, Memex.Application, automigrate: true
# Set up SMTP settings
config :lokal, Lokal.Mailer,
config :memex, Memex.Mailer,
adapter: Swoosh.Adapters.SMTP,
relay: System.get_env("SMTP_HOST") || raise("No SMTP_HOST set!"),
port: System.get_env("SMTP_PORT") || 587,
@ -79,14 +79,14 @@ if config_env() == :prod do
password: System.get_env("SMTP_PASSWORD") || raise("No SMTP_PASSWORD set!"),
ssl: System.get_env("SMTP_SSL") == "true",
email_from: System.get_env("EMAIL_FROM") || "no-reply@#{System.get_env("HOST")}",
email_name: System.get_env("EMAIL_NAME") || "Lokal"
email_name: System.get_env("EMAIL_NAME") || "Memex"
# ## Using releases
#
# If you are doing OTP releases, you need to instruct Phoenix
# to start each relevant endpoint:
#
# config :lokal, LokalWeb.Endpoint, server: true
# config :memex, MemexWeb.Endpoint, server: true
#
# Then you can assemble a release by calling `mix release`.
# See `mix help release` for more information.

View File

@ -8,19 +8,19 @@ config :bcrypt_elixir, :log_rounds, 1
# 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 :lokal, Lokal.Repo,
config :memex, Memex.Repo,
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: 10
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :lokal, LokalWeb.Endpoint,
config :memex, MemexWeb.Endpoint,
http: [ip: {0, 0, 0, 0}, port: 4002],
secret_key_base: "S3qq9QtUdsFtlYej+HTjAVN95uP5i5tf2sPYINWSQfCKJghFj2B1+wTAoljZyHOK",
server: false
# In test we don't send emails.
config :lokal, Lokal.Mailer, adapter: Swoosh.Adapters.Test
config :memex, Memex.Mailer, adapter: Swoosh.Adapters.Test
# Print only warnings and errors during test
config :logger, level: :warn
@ -29,4 +29,4 @@ config :logger, level: :warn
config :phoenix, :plug_init_mode, :runtime
# Disable Oban
config :lokal, Oban, queues: false, plugins: false
config :memex, Oban, queues: false, plugins: false