Skip to content

Instantly share code, notes, and snippets.

@fredriks
Last active December 8, 2019 11:06
Show Gist options
  • Save fredriks/3e6a32ed503b39d35e70c30d08e74680 to your computer and use it in GitHub Desktop.
Save fredriks/3e6a32ed503b39d35e70c30d08e74680 to your computer and use it in GitHub Desktop.
Phoenix framework on Debian Jessie
# Erlang
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install esl-erlang
# Elixir
sudo apt-get install elixir
# nodejs (when using brunch)
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
# postgresql
sudo apt-get install postgresql postgresql-client
# inotify-tools (dev)
sudo apt-get install inotify-tools
# if you get error: /usr/lib/erlang/erts-8.1/bin/beam: error while loading shared libraries: libsctp.so.1: cannot open shared object file: No such file or directory
#sudo apt-get install libsctp-dev
# Mix & Phoenix
mix local.hex
mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez
# postgres password
sudo su - postgres
psql
ALTER USER postgres PASSWORD 'postgres';
# C-d C-d
# hello world
mix phoenix.new hello_phoenix
cd hello_phoenix
mix ecto.create
mix phoenix.server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment