Start the app (localhost:8001/app/index.html):
./rebar3 shell
c(view_index).
npm i
npm run js
./rebar3 eunit
./rebar3 eunit --module="filter_tests"
./rebar3 fmt -w
sudo su # Important
cd /var/www/glagoly/
Start:
rebar3 release
_build/default/rel/prod/bin/prod daemon
Attach:
_build/default/rel/prod/bin/prod remote
# CTRL-D - detach from console
# gracefully shut down
init:stop().
Update:
git pull
rebar3 compile
_build/default/rel/prod/bin/prod restart