- 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 installyarn installdocker compose up -d(starts databases in docker containers)bin/setupdev up -df(starts rails, etc)- Open localhost:3000 in your browser
dev up -dfstarts containers and processes in the background (that's the-d) and follows the output (that's the-f)dev downshuts down containers and processesdev logsDisplays process and container logsdev restartrestarts any combination of processes and containersdev psdisplays the status of all containers and processes