Skip to content

Commit

Permalink
deploy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmkontra committed Jul 26, 2021
1 parent 628686b commit 4c345e9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions bullion-core/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
]
Expand Down
2 changes: 1 addition & 1 deletion bullion/config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit 4c345e9

Please sign in to comment.