- 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:
- 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 processes
dev logs Displays process and container logs
dev restart restarts any combination of processes and containers
dev ps displays the status of all containers and processes