Skip to main content

Useful Commands for Development

Drop, rebuild and seed db

bin/rails db:drop db:create db:migrate db:seed

Create new credentials

rm config/credentials.yml.enc
EDITOR="vim --nofork" bin/rails credentials:edit

Additional process to have UI changes updated as they are changed

When running the server with bin/rails s instead of bin/dev, like when attaching the debugger in VSCode, the tailwind process can be run separately.

bin/rails tailwindcss:watch

Build graphql schema

bin/rails graphql:dump_schema

Build and run docs

cd docs-site
pnpm update
pnpm build
npm run serve

Output logs during rake tasks

Rake tasks can be prepended with info, debug, or verbose to output the appropriate level of logging

# Example
rake debug db:seed