- install
direnv
brew install direnv
- configure
direnv
mkdir -p ~/.config/direnv
touch ~/.config/direnv/config.toml
echo "[whitelist]" >> ~/.config/direnv/config.toml
echo "prefix = []" >> ~/.config/direnv/config.toml
echo 'eval "$(direnv hook bash)"' >> ~/.zshrc
- run
direnv allow
in the project root
direnv allow .
mkdir db
touch db/database.sqlite
./scripts/create_database_to.sh