Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Rather than following the instructions on the Phoenix website (http://www.phoenixframework.org/docs/heroku) we opted for setting up an app.json file and used the Deploy button to build the dyno - Note the references to prod.secret.exs have been removed since these files will not be present - All secrets for production will be set via environment variables - The phoenix_static_buildpack.config needed settings for the umbrella app and to handle Phoenix 1.3
- Loading branch information
1 parent
235e161
commit 9840b15
Showing
8 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# MontrealElixir.Umbrella | ||
|
||
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "Montreal Elixir", | ||
"description": "The offical website for the Montreal Elixir community", | ||
"repository": "https://github.com/montrealelixir/website", | ||
"keywords": ["elixir", "umbrella", "phoenix", "ecto"], | ||
"success_url": "/", | ||
"addons": ["heroku-postgresql:hobby-dev", "papertrail:choklad"], | ||
"env": { | ||
"MIX_ENV": "prod", | ||
"SECRET_KEY_BASE": { | ||
"generator": "secret" | ||
}, | ||
"POOL_SIZE": { | ||
"description": "Database pool size", | ||
"value": "18" | ||
}, | ||
"SETUP_BY": { | ||
"description": "Who initiated this setup", | ||
"value": "Nicholas Henry" | ||
} | ||
}, | ||
"scripts": { | ||
"postdeploy": "mix do ecto.migrate" | ||
}, | ||
"buildpacks": [ | ||
{ | ||
"url": "https://github.com/HashNuke/heroku-buildpack-elixir.git#560e1bd7d22edf8e4d0c6706dfbcaa94fa60c397" | ||
}, | ||
{ | ||
"url": "https://github.com/gjaldon/heroku-buildpack-phoenix-static.git#45e77b3b64996422e846d375a6f57e79d212488f" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
use Mix.Config | ||
|
||
import_config "prod.secret.exs" | ||
config :montreal_elixir, MontrealElixir.Repo, | ||
adapter: Ecto.Adapters.Postgres, | ||
url: System.get_env("DATABASE_URL"), | ||
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"), | ||
ssl: true |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
erlang_version=19.3 | ||
elixir_version=1.4.2 | ||
always_rebuild=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_version=7.4.0 | ||
phoenix_relative_path=apps/montreal_elixir_web | ||
phoenix_ex=phx |