Skip to content

Instantly share code, notes, and snippets.

@nlap
Created January 5, 2017 07:10
Show Gist options
  • Save nlap/0ab724235b00a7207a3867ecd971d31f to your computer and use it in GitHub Desktop.
Save nlap/0ab724235b00a7207a3867ecd971d31f to your computer and use it in GitHub Desktop.
Install reqs and release Elixir/Phoenix app, Ubuntu 16.04
vagrant init ubuntu/xenial64  
vagrant up  
vagrant ssh  
echo 'deb https://packages.erlang-solutions.com/debian xenial contrib' | sudo tee -a  /etc/apt/sources.list  
wget -qO - https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -  
sudo apt update  
sudo apt install esl-erlang elixir  
mix local.hex  
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez  
mix phoenix.new web --no-brunch --no-ecto

Add {:exrm, "~> 1.0"} to deps list in mix.exs

mix deps.get  
MIX_ENV=prod mix compile  
MIX_ENV=prod mix release  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment