Basic Environment
Basic Environment
This README will assume you are running on MacOS.
Installing Ruby & Dependencies
Install rbenv with homebrew
brew install rbenv
Then locally install the right ruby version from the project root,
rbenv install
Install the project gems:
bundle
Installing Postgreql
Install Postgresql with homebrew:
brew install postgres
Upon successful install, read the instructions for starting your postgres database.
Initializing your local Rails environment
Get the config/master.key secret in a safe and secure manner from a developer.
This is required to decrypt secret environment variables.
Setup your local database and schema:
rake db:create
rake db:migrate
Installing Elasticsearch
- Install directly from website, by following directions here. Do not use homebrew.
- Update the
config/elasticsearch.ymlfile such thatxpack.security.enabledis set tofalse - Run
./bin/elasticsearchfrom inside the directory - Test the server is running correctly by running
curl -X GET "localhost:9200/?pretty"
Running background worker
bundle exec good_job start