Do these things every time you start new work in this project in dev or test
$ lando start
will run the test and dev database and index servicesmix setup
will install and setup dependencies
mix phx.server
will start the phoenix endpoint- or
iex -S mix phx.server
will start the phoenix endpoint inside IEx
Now you can visit localhost:4000
from your browser.
mix test
will run all the test suite- after tests are run,
./cover
will contain coverage data
We copy fixtures from Figgy's production database into a Docker container so that we can easily use it for testing indexing. To rebuild that container:
brew install lastpass-cli
cd figgy-fixture-container && ./build-and-push.sh
Remember to check formatting before pushing commits.
mix format
will format your codemix format --check-formatting
will tell you formatting that must be done.
- Connect to VPN
BRANCH=<branch> ./bin/deploy staging
For more details about an individual deployment, and to view logs, go to the jobs
section of our nomad UI.
- Connect to VPN
./bin/console staging [bash/repl]
Build Docker Image: docker build . -t dpul-collections
The SECRET_KEY_BASE below is just a filler one for the purpose of testing locally.
Run Docker Image: docker run -t -p 4000:4000 -e DATABASE_URL='ecto://postgres:@host.docker.internal:5434/database' -e SECRET_KEY_BASE='B8rwzeX3DFLveiJ4cP28lRGc0PWdEr8ZF/hDoPRucw95Nzf2IPnu7lhEB+Yldx6Z' dpul-collections