Skip to content

Instantly share code, notes, and snippets.

@Haegin
Created August 26, 2016 13:34
Show Gist options
  • Save Haegin/b29d344bdb72b0bfc7cb8a855f343739 to your computer and use it in GitHub Desktop.
Save Haegin/b29d344bdb72b0bfc7cb8a855f343739 to your computer and use it in GitHub Desktop.
Installing elixir in SmartOS
pkgin update && pkgin -y install erlang git unzip
echo "Installing exenv"
git clone git://github.com/mururu/exenv.git .exenv
echo 'export PATH="$HOME/.exenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(exenv init -)"' >> ~/.bash_profile
# Restart shell
echo "Installing Elixir 1.3.2"
wget -O 1.3.2.zip https://github.com/elixir-lang/elixir/releases/download/v1.3.2/Precompiled.zip
unzip -d .exenv/versions/1.3.2/ 1.3.2.zip
echo "Setting up hubris"
mix local.hex
git clone git@gitlab.com:Haegin/hubris
cd hubris
mix deps.get
mix local.rebar --force
npm install
npm install -g brunch
brunch build
mix ecto.create # Set up Postgres if necessary (`pkgin install postgres94`)
mix ecto.migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment