Initial Phoenix App with Fly.io

This commit is contained in:
2023-03-02 18:40:10 +02:00
commit 0853da9826
54 changed files with 1984 additions and 0 deletions

30
config/test.exs Normal file
View File

@@ -0,0 +1,30 @@
import Config
# Configure your database
#
# 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 :osuuspuutarha, Osuuspuutarha.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "osuuspuutarha_test#{System.get_env("MIX_TEST_PARTITION")}",
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 :osuuspuutarha, OsuuspuutarhaWeb.Endpoint,
http: [ip: {127, 0, 0, 1}, port: 4002],
secret_key_base: "aXJLLNGcuON6l+1xxT/u0iNExcKJnRI/hK8FESdl8yH9WKgu9v3Dz7LU+zGMwgQa",
server: false
# In test we don't send emails.
config :osuuspuutarha, Osuuspuutarha.Mailer, adapter: Swoosh.Adapters.Test
# Print only warnings and errors during test
config :logger, level: :warn
# Initialize plugs at runtime for faster test compilation
config :phoenix, :plug_init_mode, :runtime