[deployment] make sure env vars are sourced into deploy scripts

pull/246/head
Paul Schoenfelder 7 years ago
parent eda932bcf9
commit 7e7b170df9
  1. 3
      bin/deployment/build
  2. 3
      bin/deployment/migrate

@ -5,9 +5,10 @@ set -e
cd /opt/app || exit 1
export HOME=/home/ec2-user
export PATH=/opt/elixir/bin:$PATH
export MIX_ENV=prod
source /etc/environment
mix local.rebar --force
mix local.hex --force

@ -5,9 +5,10 @@ set -e
cd /opt/app || exit 1
export HOME=/home/ec2-user
export PATH=/opt/elixir/bin:$PATH
export MIX_ENV=prod
source /etc/environment
mix do ecto.create, ecto.migrate
exit 0

Loading…
Cancel
Save