add touchless docker deploys

This commit is contained in:
2021-09-04 16:19:23 -04:00
committed by oliviasculley
parent bde1cff7a4
commit 3dc255b7c2
13 changed files with 476 additions and 7944 deletions

View File

@ -5,7 +5,7 @@
# is restricted to this project.
# General application configuration
use Mix.Config
import Config
config :lokal,
ecto_repos: [Lokal.Repo]
@ -28,4 +28,4 @@ config :phoenix, :json_library, Jason
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"
import_config "#{config_env()}.exs"

View File

@ -1,12 +1,8 @@
use Mix.Config
import Config
# Configure your database
config :lokal, Lokal.Repo,
username: "postgres",
password: "postgres",
database: "lokal_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
url: "ecto://postgres:postgres@localhost/lokal_dev",
pool_size: 10
# For development, we disable any cache and enable

View File

@ -1,4 +1,4 @@
use Mix.Config
import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
@ -10,8 +10,13 @@ use Mix.Config
# which you should run after static files are built and
# before starting your production server.
config :lokal, LokalWeb.Endpoint,
url: [host: "example.com", port: 80],
url: [host: "localhost"],
http: [port: 4000],
cache_static_manifest: "priv/static/cache_manifest.json"
config :lokal, Lokal.Repo,
url: "ecto://postgres:postgres@localhost/lokal",
pool_size: 10
# Do not print debug messages in production
config :logger, level: :info
@ -23,7 +28,7 @@ config :logger, level: :info
#
# config :lokal, LokalWeb.Endpoint,
# ...
# url: [host: "example.com", port: 443],
# url: [host: "localhost", port: 443],
# https: [
# port: 443,
# cipher_suite: :strong,
@ -49,7 +54,3 @@ config :logger, level: :info
# force_ssl: [hsts: true]
#
# Check `Plug.SSL` for all available options in `force_ssl`.
# Finally import the config/prod.secret.exs which loads secrets
# and configuration from environment variables.
import_config "prod.secret.exs"

View File

@ -2,14 +2,11 @@
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
import Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
environment variable DATABASE_URL is missing.
For example: ecto://USER:PASS@HOST/DATABASE
"""
"ecto://postgres:postgres@lokal-db/lokal"
config :lokal, Lokal.Repo,
# ssl: true,
@ -28,14 +25,5 @@ config :lokal, LokalWeb.Endpoint,
port: String.to_integer(System.get_env("PORT") || "4000"),
transport_options: [socket_opts: [:inet6]]
],
secret_key_base: secret_key_base
# ## Using releases (Elixir v1.9+)
#
# If you are doing OTP releases, you need to instruct Phoenix
# to start each relevant endpoint:
#
# config :lokal, LokalWeb.Endpoint, server: true
#
# Then you can assemble a release by calling `mix release`.
# See `mix help release` for more information.
secret_key_base: secret_key_base,
server: true

View File

@ -1,4 +1,4 @@
use Mix.Config
import Config
# Only in tests, remove the complexity from the password hashing algorithm
config :bcrypt_elixir, :log_rounds, 1