Skip to content

Commit

Permalink
Heroku config
Browse files Browse the repository at this point in the history
  • Loading branch information
X0nic committed Jun 30, 2015
1 parent e2ac7d5 commit 381a099
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -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
# /config/prod.secret.exs
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: mix phoenix.server
13 changes: 13 additions & 0 deletions 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
1 change: 1 addition & 0 deletions elixir_buildpack.config
@@ -0,0 +1 @@
config_vars_to_export=(DATABASE_URL SECRET_KEY_BASE)

0 comments on commit 381a099

Please sign in to comment.