Skip to content
Permalink
Browse files

Code for step 2

  • Loading branch information...
akoutmos committed Jun 21, 2019
1 parent be6d65a commit cbb3db35969d280d3102c19c40907a4e6326dd31
@@ -55,11 +55,10 @@ config :logger, level: :info
# If you are doing OTP releases, you need to instruct Phoenix
# to start each relevant endpoint:
#
# config :docker_elixir_19_release, DockerElixir19ReleaseWeb.Endpoint, server: true
config :docker_elixir_19_release, DockerElixir19ReleaseWeb.Endpoint, server: true
#
# Then you can assemble a release by calling `mix release`.
# See `mix help release` for more information.

# Finally import the config/prod.secret.exs which loads secrets
# and configuration from environment variables.
import_config "prod.secret.exs"

This file was deleted.

@@ -0,0 +1,12 @@
import Config

secret_key_base = System.fetch_env!("SECRET_KEY_BASE")
cool_text = System.fetch_env!("COOL_TEXT")
application_port = System.fetch_env!("APP_PORT")

config :docker_elixir_19_release, DockerElixir19ReleaseWeb.Endpoint,
http: [:inet6, port: String.to_integer(application_port)],
secret_key_base: secret_key_base

config :docker_elixir_19_release,
cool_text: cool_text
@@ -1,6 +1,7 @@
<section class="phx-hero">
<h1><%= gettext "Welcome to %{name}!", name: "Phoenix" %></h1>
<p>A productive web framework that<br/>does not compromise speed or maintainability.</p>
<p><%= Application.get_env(:docker_elixir_19_release, :cool_text) %></p>
</section>

<section class="row">
@@ -0,0 +1,4 @@
@echo off
rem Set the release to work across nodes
rem set RELEASE_DISTRIBUTION=name
rem set RELEASE_NODE=<%= @release.name %>@127.0.0.1
@@ -0,0 +1,12 @@
#!/bin/sh

# Sets and enables heart (recommended only in daemon mode)
# if [ "$RELEASE_COMMAND" = "daemon" ] || [ "$RELEASE_COMMAND" = "daemon_iex" ]; then
# HEART_COMMAND="$RELEASE_ROOT/bin/$RELEASE_NAME $RELEASE_COMMAND"
# export HEART_COMMAND
# export ELIXIR_ERL_OPTIONS="-heart"
# fi

# Set the release to work across nodes
# export RELEASE_DISTRIBUTION=name
# export RELEASE_NODE=<%= @release.name %>@127.0.0.1
@@ -0,0 +1,11 @@
## Customize flags given to the VM: http://erlang.org/doc/man/erl.html
## -mode/-name/-sname/-setcookie are configured via env vars, do not set them here

## Number of dirty schedulers doing IO work (file, sockets, etc)
##+SDio 5

## Increase number of concurrent ports/sockets
##+Q 65536

## Tweak GC to run more often
##-env ERL_FULLSWEEP_AFTER 10

0 comments on commit cbb3db3

Please sign in to comment.
You can’t perform that action at this time.