ref:
- http://crypt.codemancers.com/posts/2016-10-06-elixir-phoenix-distillery/
- http://blog.firstiwaslike.com/elixir-deployments-with-distillery-running-ecto-migrations/
- http://www.phoenixframework.org/docs/advanced-deployment
add deps {:distillery, "~> 1.0"}
mix deps.get
mix release.init
brunch build --production
MIX_ENV=prod mix phoenix.digest
MIX_ENV=prod mix release --env=prod
PORT=4000 MIX_ENV=prod mix phoenix.server
** something else
install nodejs ref: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8