Rename repository

This commit is contained in:
Pim Kunis 2021-09-01 14:43:55 +02:00
parent 4aeb2d2cd8
commit 232df26b85
71 changed files with 348 additions and 345 deletions

View file

@ -7,15 +7,15 @@
# General application configuration
use Mix.Config
config :matrix_server,
ecto_repos: [MatrixServer.Repo]
config :architex,
ecto_repos: [Architex.Repo]
# Configures the endpoint
config :matrix_server, MatrixServerWeb.Endpoint,
config :architex, ArchitexWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "npI0xfNYxf5FoTIdAoc7er0ZvdCJgQFZQ9LcpUFL6dsPXyQllMv45zaQQoO4ZLu1",
render_errors: [view: MatrixServerWeb.ErrorView, accepts: ~w(json), layout: false],
pubsub_server: MatrixServer.PubSub,
render_errors: [view: ArchitexWeb.ErrorView, accepts: ~w(json), layout: false],
pubsub_server: Architex.PubSub,
live_view: [signing_salt: "6ymoi3Gx"]
# Configures Elixir's Logger
@ -26,7 +26,7 @@ config :logger, :console,
# Use Jason for JSON parsing in Phoenix
config :phoenix, :json_library, Jason
config :matrix_server, MatrixServer.Repo, migration_timestamps: [type: :utc_datetime]
config :architex, Architex.Repo, migration_timestamps: [type: :utc_datetime]
config :cors_plug,
origin: ["*"],

View file

@ -4,10 +4,10 @@ hostname = "localhost"
port = System.get_env("PORT") || 4000
# Configure your database
config :matrix_server, MatrixServer.Repo,
username: "matrix_server",
password: "matrix_server",
database: "matrix_server_dev",
config :architex, Architex.Repo,
username: "architex",
password: "architex",
database: "architex_dev",
hostname: hostname,
show_sensitive_data_on_connection_error: true,
pool_size: 10
@ -18,7 +18,7 @@ config :matrix_server, MatrixServer.Repo,
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :matrix_server, MatrixServerWeb.Endpoint,
config :architex, ArchitexWeb.Endpoint,
http: [port: port],
debug_errors: true,
code_reloader: true,
@ -59,5 +59,5 @@ config :phoenix, :stacktrace_depth, 20
# Initialize plugs at runtime for faster development compilation
config :phoenix, :plug_init_mode, :runtime
config :matrix_server, server_name: "#{hostname}:#{port}"
config :matrix_server, private_key_file: "keys/id_ed25519"
config :architex, server_name: "#{hostname}:#{port}"
config :architex, private_key_file: "keys/id_ed25519"

View file

@ -9,7 +9,7 @@ use Mix.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 :matrix_server, MatrixServerWeb.Endpoint,
config :architex, ArchitexWeb.Endpoint,
url: [host: "example.com", port: 80],
cache_static_manifest: "priv/static/cache_manifest.json"
@ -21,7 +21,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 :matrix_server, MatrixServerWeb.Endpoint,
# config :architex, ArchitexWeb.Endpoint,
# ...
# url: [host: "example.com", port: 443],
# https: [
@ -45,7 +45,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 :matrix_server, MatrixServerWeb.Endpoint,
# config :architex, ArchitexWeb.Endpoint,
# force_ssl: [hsts: true]
#
# Check `Plug.SSL` for all available options in `force_ssl`.

View file

@ -11,7 +11,7 @@ database_url =
For example: ecto://USER:PASS@HOST/DATABASE
"""
config :matrix_server, MatrixServer.Repo,
config :architex, Architex.Repo,
# ssl: true,
url: database_url,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")
@ -23,7 +23,7 @@ secret_key_base =
You can generate one by calling: mix phx.gen.secret
"""
config :matrix_server, MatrixServerWeb.Endpoint,
config :architex, ArchitexWeb.Endpoint,
http: [
port: String.to_integer(System.get_env("PORT") || "4000"),
transport_options: [socket_opts: [:inet6]]
@ -35,7 +35,7 @@ config :matrix_server, MatrixServerWeb.Endpoint,
# If you are doing OTP releases, you need to instruct Phoenix
# to start each relevant endpoint:
#
# config :matrix_server, MatrixServerWeb.Endpoint, server: true
# config :architex, ArchitexWeb.Endpoint, server: true
#
# Then you can assemble a release by calling `mix release`.
# See `mix help release` for more information.

View file

@ -8,21 +8,21 @@ port = System.get_env("PORT") || 4000
# 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 :matrix_server, MatrixServer.Repo,
username: "matrix_server",
password: "matrix_server",
database: "matrix_server_test#{System.get_env("MIX_TEST_PARTITION")}",
config :architex, Architex.Repo,
username: "architex",
password: "architex",
database: "architex_test#{System.get_env("MIX_TEST_PARTITION")}",
hostname: hostname,
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :matrix_server, MatrixServerWeb.Endpoint,
config :architex, ArchitexWeb.Endpoint,
http: [port: port],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
config :matrix_server, server_name: "#{hostname}:#{port}"
config :matrix_server, private_key_file: "keys/id_ed25519"
config :architex, server_name: "#{hostname}:#{port}"
config :architex, private_key_file: "keys/id_ed25519"