Skip to content

detaso/rails-tooling

Repository files navigation

Rails Tooling

devenv setup

  1. Install nix
  2. 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
  1. Install devenv:
nix profile install --accept-flake-config github:cachix/devenv/latest
  1. Install OrbStack
  2. Install direnv:
brew install direnv
  1. Add the following lines to your ~/.zshrc:
export DIRENV_LOG_FORMAT=
eval "$(direnv hook zsh)"
  1. Change to your repository
  2. direnv allow
  3. Watch as devenv builds your environment.

App setup

  1. bundle install
  2. yarn install
  3. docker compose up -d (starts databases in docker containers)
  4. bin/setup
  5. dev up -df (starts rails, etc)
  6. Open localhost:3000 in your browser

dev reference

Commands

  • 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published