Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hectorddmx/d0c1287f7938374533e4b7363b888e19 to your computer and use it in GitHub Desktop.
Save hectorddmx/d0c1287f7938374533e4b7363b888e19 to your computer and use it in GitHub Desktop.
run phoenix on amazon linux
export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
cd /
# app deps
yum install git -y
# erlang deps
yum install ncurses-devel openssl-devel -y
yum groupinstall "Development Tools" -y
yum install wget -y
# erlang
cd /tmp
wget -nc http://www.erlang.org/download/otp_src_20.0.tar.gz
tar -zxvf otp_src_20.0.tar.gz
# rm otp_src_20.0.tar.gz
cd otp_src_20.0/
./configure
make && make install
# elixir
cd /tmp
wget "https://github.com/elixir-lang/elixir/archive/v1.6.1.tar.gz"
tar xfz v1.6.1.tar.gz
cd elixir-1.6.1/
# wget -nc https://github.com/elixir-lang/elixir/archive/v1.6.1.zip
# unzip v1.6.1.zip
# cd elixir-1.6.1/
export PATH="${PATH}:/usr/local/bin"
make && make install
mix local.hex --force
mix local.rebar --force
# phoenix deps
yum -y install postgresql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment