- Install nix
- Set up cachix:
nix profile install nixpkgs#cachix
cachix use devenv
# Note: it's ok to run the command to make your user a nix admin
- Install devenv:
nix profile install --accept-flake-config github:cachix/devenv/latest
- Install OrbStack
- Install direnv:
brew install direnv
- Add the following lines to your ~/.zshrc:
export DIRENV_LOG_FORMAT=
eval "$(direnv hook zsh)"
- Change to your repository
direnv allow
- Watch as devenv builds your environment.
bundle install
yarn install
docker compose up -d
(starts databases in docker containers)bin/setup
dev up -df
(starts rails, etc)- Open localhost:3000 in your browser
dev up -df
starts containers and processes in the background (that's the-d
) and follows the output (that's the-f
)dev down
shuts down containers and processesdev logs
Displays process and container logsdev restart
restarts any combination of processes and containersdev ps
displays the status of all containers and processes