Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1014 Bytes

raspberry_pi_setup.md

File metadata and controls

40 lines (27 loc) · 1014 Bytes

the pi uses armhf

to download: wget

to install: sudo dpkg -i

to check versions: apt-cache policy

manually download+install latest libssl1.1

install esl-erlang and erlang-dev

manually download+install elixir 1.5.x

install postgresql

install node (need to get special repo, the default is an old version)

install build-essential

npm i
npm rebuild node-sass

create secret config, make secret keys and database password

set password on psql

mix deps.get
mix compile
sudo bash build_assets.sh
sudo MIX_ENV=prod PORT=80 mix release --env=prod
mkdir ~/deploy
cp _build/prod/rel/tabletalk/releases/{version}/tabletalk.tar.gz ~/deploy/
cd ~/deploy
tar xvf tabletalk.tar.gz
sudo MIX_ENV=prod PORT=80 ./bin/tabletalk start