Skip to content

Commit eee40ce

Browse files
committed
Improve doc deploys, upgrade Elixir, config Sentry
- Update to Elixir 1.3.3 - Update Docker to Elixir 1.3.3 - Improve documentation deployment process - Reconfigure Sentry to use proper env
1 parent bc97f8f commit eee40ce

8 files changed

Lines changed: 27 additions & 8 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM elixir:1.3.2
1+
FROM elixir:1.3.3
22

33
RUN apt-get update -qq && apt-get install -y build-essential
44

config/dev.exs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@ config :guardian, Guardian,
4747
secret_key: "e62fb6e2746f6b1bf8b5b735ba816c2eae1d5d76e64f18f3fc647e308b0c159e"
4848

4949
config :code_corps, :analytics, CodeCorps.Analytics.InMemory
50+
51+
config :sentry,
52+
environment_name: Mix.env || :dev

config/prod.exs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ config :guardian, Guardian,
3838
# Do not print debug messages in production
3939
config :logger, level: :info
4040

41+
config :sentry,
42+
environment_name: Mix.env || :prod
43+
4144
# ## SSL Support
4245
#
4346
# To get SSL working, you will need to add the `https` key

config/staging.exs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ config :guardian, Guardian,
3737
# Do not print debug messages in production
3838
config :logger, level: :info
3939

40+
config :sentry,
41+
environment_name: Mix.env || :staging
42+
4043
# ## SSL Support
4144
#
4245
# To get SSL working, you will need to add the `https` key

config/test.exs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ config :code_corps, :icon_color_generator, CodeCorps.RandomIconColor.TestGenerat
3434

3535
# Set Corsica logging to output no console warning when rejecting a request
3636
config :code_corps, :corsica_log_level, [rejected: :debug]
37+
38+
config :sentry,
39+
environment_name: Mix.env || :test

deploy_docs.sh

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,26 @@
33
# Ensure exit codes other than 0 fail the build
44
set -e
55

6+
# Pulling from GitHub
7+
echo "Pulling from GitHub..."
8+
mkdir -p doc
9+
cd doc
10+
git init
11+
if ! git remote | grep origin; then
12+
git remote add origin [email protected]:code-corps/code-corps-api-github-pages.git
13+
git pull
14+
fi
15+
cd ..
16+
617
# Generate docs
718
echo "Generating docs..."
819
mix docs
20+
cd doc
921

1022
# Push to GitHub
1123
echo "Pushing to GitHub..."
12-
cd doc
13-
git init
1424
git add .
1525
git commit -m "Update docs"
16-
if ! git remote | grep origin; then
17-
git remote add origin [email protected]:code-corps/code-corps-api-github-pages.git
18-
fi
1926
git push -u origin master:gh-pages
2027

2128
# Exit successfully

elixir_buildpack.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
erlang_version=19.1
2-
elixir_version=1.3.2
2+
elixir_version=1.3.3

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule CodeCorps.Mixfile do
44
def project do
55
[app: :code_corps,
66
version: "0.0.1",
7-
elixir: "1.3.2",
7+
elixir: "1.3.3",
88
elixirc_paths: elixirc_paths(Mix.env),
99
compilers: [:phoenix, :gettext] ++ Mix.compilers,
1010
build_embedded: Mix.env == :prod,

0 commit comments

Comments
 (0)