AdvocateBridge provides the realtime SMS bridge between twilio and makes it available for Advocate to use.
- clone
- install elixir (macOS
brew install elixir
) mix local.hex
mix local.rebar
mix deps.get
Note: DB creation/migrations are handled in Advocate
mix phoenix.server
https://github.com/tpitale/advocate
You can run all services together using https://github.com/tpitale/advocate-provision.
If you need to run one at a time follow the steps below:
Note: You may have done this as part of Advocate setup
sudo ifconfig lo0 alias 10.200.10.1/24
- Trust all postgresql connections from 10.200.10.1
- Change
listen_addresses = '*'
OR `listen_addresses = 'localhost,10.200.10.1'
Note: we advise installing autoenv
(on macOS brew install autoenv
) which loads .env
when you cd
into the project
cp .env.sample .env
- configure
.env
with your username/password
make run
Note: while running locally, you can open a new terminal and run make shell
- configure
mix compile
to build inMIX_ENV=prod
for production
Note: Be sure to have $DOCKER_REGISTRY
set to the registry you would like to use
make release
will:
- build
- tag latest
- push it to the registry