diff --git a/.gitignore b/.gitignore index e8076f8..d6c7109 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,4 @@ erl_crash.dump # Alternatively, you may comment the line below and commit the # secrets file as long as you replace its contents by environment # variables. -/config/prod.secret.exs \ No newline at end of file +# /config/prod.secret.exs diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..23f2097 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: mix phoenix.server diff --git a/config/prod.secret.exs b/config/prod.secret.exs new file mode 100644 index 0000000..589f74e --- /dev/null +++ b/config/prod.secret.exs @@ -0,0 +1,13 @@ +use Mix.Config + +# In this file, we keep production configuration that +# you likely want to automate and keep it away from +# your version control system. +config :officetournament, Officetournament.Endpoint, + secret_key_base: System.get_env("SECRET_KEY_BASE") + +# Configure your database +config :officetournament, Officetournament.Repo, + adapter: Ecto.Adapters.Postgres, + url: System.get_env("DATABASE_URL") || "ecto://postgres:postgres@localhost/blog_backend_prod", + size: 20 # The amount of database connections in the pool diff --git a/elixir_buildpack.config b/elixir_buildpack.config new file mode 100644 index 0000000..887927e --- /dev/null +++ b/elixir_buildpack.config @@ -0,0 +1 @@ +config_vars_to_export=(DATABASE_URL SECRET_KEY_BASE)