remove some fly.io configs
This commit is contained in:
parent
d7019de1ed
commit
43c930e772
2 changed files with 7 additions and 7 deletions
|
|
@ -22,14 +22,14 @@ FROM ${BUILDER_IMAGE} as builder
|
||||||
|
|
||||||
# install build dependencies
|
# install build dependencies
|
||||||
RUN apt-get update -y && apt-get install -y build-essential git \
|
RUN apt-get update -y && apt-get install -y build-essential git \
|
||||||
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
|
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
|
||||||
|
|
||||||
# prepare build dir
|
# prepare build dir
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# install hex + rebar
|
# install hex + rebar
|
||||||
RUN mix local.hex --force && \
|
RUN mix local.hex --force && \
|
||||||
mix local.rebar --force
|
mix local.rebar --force
|
||||||
|
|
||||||
# set build ENV
|
# set build ENV
|
||||||
ENV MIX_ENV="prod"
|
ENV MIX_ENV="prod"
|
||||||
|
|
@ -91,5 +91,5 @@ USER nobody
|
||||||
CMD ["/app/bin/server"]
|
CMD ["/app/bin/server"]
|
||||||
|
|
||||||
# Appended by flyctl
|
# Appended by flyctl
|
||||||
ENV ECTO_IPV6 true
|
#ENV ECTO_IPV6 true
|
||||||
ENV ERL_AFLAGS "-proto_dist inet6_tcp"
|
#ENV ERL_AFLAGS "-proto_dist inet6_tcp"
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,6 @@
|
||||||
# export RELEASE_DISTRIBUTION=name
|
# export RELEASE_DISTRIBUTION=name
|
||||||
# export RELEASE_NODE=<%= @release.name %>
|
# export RELEASE_NODE=<%= @release.name %>
|
||||||
|
|
||||||
ip=$(grep fly-local-6pn /etc/hosts | cut -f 1)
|
#ip=$(grep fly-local-6pn /etc/hosts | cut -f 1)
|
||||||
export RELEASE_DISTRIBUTION=name
|
#export RELEASE_DISTRIBUTION=name
|
||||||
export RELEASE_NODE=$FLY_APP_NAME@$ip
|
#export RELEASE_NODE=$FLY_APP_NAME@$ip
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue