From 4c345e9520d53133eedab2b3077754ecd2e4442a Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 25 Jul 2021 20:51:46 -0700 Subject: [PATCH] deploy fixes --- Dockerfile | 5 +++++ bullion-core/mix.exs | 1 + bullion/config/prod.exs | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 249cad3..d02daf4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,9 @@ FROM elixir:latest # Create app directory and copy the Elixir projects into it RUN mkdir /app +RUN mkdir /bullion-core COPY ./bullion /app +COPY ./bullion-core /bullion-core WORKDIR /app # Install hex package manager @@ -22,6 +24,9 @@ RUN mix local.rebar --force ARG deps_postfix RUN mix deps.get ${deps_postfix} +RUN apt-get update +RUN apt-get install -y npm +RUN cd assets && npm install && cd - RUN npm run deploy --prefix ./assets RUN mix do compile diff --git a/bullion-core/mix.exs b/bullion-core/mix.exs index f8c7a9f..863a7f3 100644 --- a/bullion-core/mix.exs +++ b/bullion-core/mix.exs @@ -22,6 +22,7 @@ defmodule BullionCore.MixProject do # Run "mix help deps" to learn about dependencies. defp deps do [ + {:decimal, "~> 2.0"} # {:dep_from_hexpm, "~> 0.3.0"}, # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} ] diff --git a/bullion/config/prod.exs b/bullion/config/prod.exs index c8a6860..4a5753c 100644 --- a/bullion/config/prod.exs +++ b/bullion/config/prod.exs @@ -14,7 +14,7 @@ config :bullion, BullionWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json" # Do not print debug messages in production -config :logger, level: :info +config :logger, level: :debug # ## SSL Support #