Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Update more sets
Browse files Browse the repository at this point in the history
  • Loading branch information
naps62 committed Jun 4, 2018
1 parent 9b26248 commit d645964
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion apps/mkm_api/lib/mkm_api/cards_basic.ex
Expand Up @@ -33,7 +33,7 @@ defmodule MkmAPI.CardsBasic do
end

defp recent_sets do
one_month_ago = Timex.new() |> Timex.shift(monhts: -1)
one_month_ago = Timex.new() |> Timex.shift(monhts: -3)

Set
|> where([s], s.inserted_at > ^one_month_ago)
Expand Down
12 changes: 2 additions & 10 deletions config/config.exs
@@ -1,18 +1,10 @@
# This file is responsible for configuring your application
#
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config

# By default, the umbrella project as well as each child
# application will require this configuration file, ensuring
# they all use the same configuration. While one could
# configure all applications here, we prefer to delegate
# back to each application for organization purposes.
import_config "../apps/*/config/config.exs"

import_config "#{Mix.env}.exs"
import_config "#{Mix.env()}.exs"

if Mix.env == :prod or Mix.env == :dev do
if Mix.env() == :prod or Mix.env() == :dev do
import_config "mkm-prod.exs"
end

Expand Down
3 changes: 0 additions & 3 deletions docker-compose.yml
Expand Up @@ -19,9 +19,6 @@ services:
expose:
- "4000"
environment:
VIRTUAL_HOST: "mtgsear.ch,admin.mtgsear.ch"
LETSENCRYPT_HOST: "mtgsear.ch,admin.mtgsear.ch"
LETSENCRYPT_EMAIL: "mpalhas@gmail.com"
MIX_ENV: prod
DATABASE_URL: "ecto://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_DB}"
PROXY_PORT: 4000
Expand Down

0 comments on commit d645964

Please sign in to comment.