Last active
December 8, 2019 11:06
-
-
Save fredriks/3e6a32ed503b39d35e70c30d08e74680 to your computer and use it in GitHub Desktop.
Phoenix framework on Debian Jessie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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