set default port to 5000 for production
This commit is contained in:
parent
3bfca5a726
commit
ddf75031e0
@ -64,9 +64,9 @@ RUN apt-get update -y && \
|
||||
|
||||
# Set the locale
|
||||
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LANGUAGE en_US:en
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
ENV LANG=en_US.UTF-8
|
||||
ENV LANGUAGE=en_US:en
|
||||
ENV LC_ALL=en_US.UTF-8
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@ -79,7 +79,7 @@ COPY --from=builder --chown=nobody:root /build/app/_build/${MIX_ENV}/rel/firehos
|
||||
USER nobody
|
||||
|
||||
# Dokku uses the EXPOSE port for routing
|
||||
EXPOSE 4000
|
||||
EXPOSE 5000
|
||||
|
||||
ENV PHX_SERVER=true
|
||||
|
||||
|
||||
@ -51,7 +51,7 @@ if config_env() == :prod do
|
||||
"""
|
||||
|
||||
host = System.get_env("PHX_HOST") || "example.com"
|
||||
port = String.to_integer(System.get_env("PORT") || "4000")
|
||||
port = String.to_integer(System.get_env("PORT") || "5000")
|
||||
|
||||
config :firehose, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ echo "==> Setting environment variables"
|
||||
dokku config:set --no-restart "$APP" \
|
||||
SECRET_KEY_BASE="$SECRET_KEY_BASE" \
|
||||
PHX_HOST="$PHX_HOST" \
|
||||
PORT="4000"
|
||||
PORT="5000"
|
||||
|
||||
echo ""
|
||||
echo "==> Setup complete!"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user