Advocate provides tools for a concierge to help advocate for the homeless population of a city.
- clone
- install ruby (2.3)
bundle config build.libv8 --with-system-v8
bundle install
bin/rake db:create db:migrate db:seed
bundle exec foreman start
https://github.com/tpitale/advocate-bridge
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 AdvocateBridge 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
Note: rails autoloading does not yet work when running in docker
- rails autoloading without rebuilding docker
- work with non-precompiled assets in development (probably nginx config not letting rails return assets)
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