Skip to content

Commit

Permalink
Cleanup, move env management to .env
Browse files Browse the repository at this point in the history
  • Loading branch information
sixFingers committed Aug 23, 2016
1 parent 9d6eea0 commit 5b0c367
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ erl_crash.dump

# Storage
/storage

# Environment
.env
10 changes: 5 additions & 5 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ config :phamello,
# Configures the endpoint
config :phamello, Phamello.Endpoint,
url: [host: "localhost"],
secret_key_base: "WtximjVJudS7HBu9b7F1CXVQkroV4E0/gGXohu0D45EOYr/7R/fQO6xOIF7PJ+ad",
secret_key_base: System.get_env("SECRET_KEY_BASE"),
render_errors: [view: Phamello.ErrorView, accepts: ~w(html json)],
pubsub: [name: Phamello.PubSub,
adapter: Phoenix.PubSub.PG2]
Expand All @@ -34,12 +34,12 @@ config :guardian, Guardian,

config :phamello, Phamello.Picture,
storage_path: System.get_env("IMAGE_STORAGE_FOLDER"),
bucket_storage_path: System.get_env("IMAGE_STORAGE_FOLDER"),
max_file_size: 5_000_000

config :phamello, Phamello.S3Client,
aws_access_key_id: System.get_env("AWS_ACCESS_KEY_ID"),
aws_secret_access_key: System.get_env("AWS_SECRET_ACCESS_KEY"),
bucket_name: System.get_env("IMAGE_STORAGE_BUCKET")
config :ex_aws, :s3,
access_key_id: System.get_env("AWS_ACCESS_KEY_ID"),
secret_access_key: System.get_env("AWS_SECRET_ACCESS_KEY")

config :phamello, Phamello.TrelloClient,
api_key: System.get_env("TRELLO_API_KEY"),
Expand Down
4 changes: 0 additions & 4 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,3 @@ config :phamello, Phamello.Repo,
database: "phamello_dev",
hostname: "localhost",
pool_size: 10

config :phamello, Phamello.Picture,
storage_path: "storage"

0 comments on commit 5b0c367

Please sign in to comment.