1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Compare commits

..

No commits in common. "4be36943deb03d1cd103dd27b167533e5815ef7d" and "1656bd482d2f53d057fe4590ce5147b226088bf4" have entirely different histories.

5 changed files with 13 additions and 70 deletions

View File

@ -5,19 +5,19 @@ config :chess, ChessWeb.Endpoint,
check_origin: ["https://chess.danbarber.me", "https://64squares.club"],
http: [port: {:system, "PORT"}],
root: "./assets",
secret_key_base: System.get_env("SECRET_KEY_BASE"),
secret_key_base: "${SECRET_KEY_BASE}",
server: true,
url: [scheme: "https", host: System.get_env("HOST"), port: System.get_env("URL_PORT")],
url: [scheme: "https", host: "${HOST}", port: "${URL_PORT}"],
version: Application.spec(:chess, :vsn)
config :chess, Chess.Mailer,
adapter: Bamboo.MailgunAdapter,
api_key: System.get_env("MAILGUN_API_KEY"),
domain: System.get_env("MAILGUN_DOMAIN")
api_key: "${MAILGUN_API_KEY}",
domain: "${MAILGUN_DOMAIN}"
config :chess, Chess.Repo,
adapter: Ecto.Adapters.Postgres,
url: System.get_env("DATABASE_URL"),
url: "${DATABASE_URL}",
database: "",
ssl: true,
pool_size: 1

View File

@ -2,19 +2,19 @@
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
~w(rel plugins *.exs)
["rel", "plugins", "*.exs"]
|> Path.join()
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Distillery.Releases.Config,
# This sets the default release built by `mix distillery.release`
use Mix.Releases.Config,
# This sets the default release built by `mix release`
default_release: :default,
# This sets the default environment used by `mix distillery.release`
# This sets the default environment used by `mix release`
default_environment: Mix.env()
# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/config/distillery.html
# and environments, visit https://hexdocs.pm/distillery/configuration.html
# You may define one or more environments in this file,
@ -31,19 +31,18 @@ environment :dev do
# dev mode.
set dev_mode: true
set include_erts: false
set cookie: :"CK%$*pAXF%$X]|ceC%xi:QDqt_${^0@ZyUOv}dp4Ld9{WH7h*JM<R~EP4sUr^OD="
set cookie: :"?Oxo8uJ@&D@Sw@`NN!<5rFxVDA)JO1r$OT{{Py79R9`C4&DRNM~%joji8B2%&TCe"
end
environment :prod do
set include_erts: true
set include_src: false
set cookie: :"lhX:Fbp>xJ&V;50V~CY<vA7Wtf!T)N_A:O!9s$.G@jOAL=hxYF*qL;ksj|m^Y!e^"
set vm_args: "rel/vm.args"
set cookie: :";IXx6btpc8P4w2LQl*Zq4aD%.`*:k!^|,W=:_21,T?v!Bd0i=NfVv~3J>awv|7^$"
end
# You may define one or more releases in this file.
# If you have not set a default release, or selected one
# when running `mix distillery.release`, the first release in the file
# when running `mix release`, the first release in the file
# will be used by default
release :chess do

View File

@ -1,23 +0,0 @@
use Mix.Config
config :chess, ChessWeb.Endpoint,
cache_static_manifest: "priv/static/cache_manifest.json",
check_origin: ["https://chess.danbarber.me", "https://64squares.club"],
http: [port: {:system, "PORT"}],
root: "./assets",
secret_key_base: "${SECRET_KEY_BASE}",
server: true,
url: [scheme: "https", host: "${HOST}", port: "${URL_PORT}"],
version: Application.spec(:chess, :vsn)
config :chess, Chess.Mailer,
adapter: Bamboo.MailgunAdapter,
api_key: "${MAILGUN_API_KEY}",
domain: "${MAILGUN_DOMAIN}"
config :chess, Chess.Repo,
adapter: Ecto.Adapters.Postgres,
url: "${DATABASE_URL}",
database: "",
ssl: true,
pool_size: 1

View File

@ -1,3 +0,0 @@
*.*
!*.exs
!.gitignore

View File

@ -1,30 +0,0 @@
## This file provide the arguments provided to the VM at startup
## You can find a full list of flags and their behaviours at
## http://erlang.org/doc/man/erl.html
## Name of the node
-name <%= release_name %>@127.0.0.1
## Cookie for distributed erlang
-setcookie <%= release.profile.cookie %>
## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
## (Disabled by default..use with caution!)
##-heart
## Enable kernel poll and a few async threads
##+K true
##+A 5
## For OTP21+, the +A flag is not used anymore,
## +SDio replace it to use dirty schedulers
##+SDio 5
## Increase number of concurrent ports/sockets
##-env ERL_MAX_PORTS 4096
## Tweak GC to run more often
##-env ERL_FULLSWEEP_AFTER 10
# Enable SMP automatically based on availability
# On OTP21+, this is not needed anymore.
-smp auto