- GitHub
- Github Actions/CI
- Production Site
- Staging Site
- Local Site via cloudflare tunnel
- Rails Guides (8.0.0)
- PostgreSQL
- Heroku Documentation
- AWS Documentation
- Bootstrap Docs (5.3.3)
- Yarn Docs (2+)
- Lock Bundle:
bundle lock --add-platform x86_64-linux
- asdf
- Install with
brew install asdf
- ruby:
asdf plugin-add ruby
- nodejs:
asdf plugin-add nodejs
- postgres:
asdf plugin-add postgres
- Update all plugins:
asdf plugin update --all
- List available versions:
asdf list all [plugin]
- Install latest library:
asdf install [plugin] latest
- Set global version:
asdf global [plugin] latest
- Set local version:
asdf local [plugin] latest
- Delete existing yarn.lock:
rm -rf yarn.lock
- Create a blank file:
touch yarn.lock
- Update to the latest yarn version:
yarn set version berry
- run
rails credentials:edit
- Your editor will need to run with --wait due to decryption speed
- example:
export EDITOR="code -w"
- Retrieve keys with
Rails.application.credentials.[environment_name].[key_name]
- example
Rails.application.credentials.development.postmark_api_token
heroku run rails db:reset -r [staging|production]
# warning: destructiveheroku run rails db:migrate -r [staging|production]
heroku run rails db:seed -r [staging|production]
- pghero gem
- Update stats with
rake pghero:capture_query_stats
-
alias foreb="foreman start -f Procfile.dev.backend"
-
alias foref="foreman start -f Procfile.dev.frontend"
-
alias rs="rails s"
-
foreb
runs good_job worker -
foref
runs a js and css watcher for changes -
rs8
runs puma locally on port 8000
- KC Tennis uses the
local.kc.tennis
domain for local tunneling with Cloudflare and thecloudflared
ci - Install (on Mac) with
brew install cloudflared
- Login with
cloudflared tunnel login
- Create name tunnel
cloudflared tunnel create <NAME>
orcloudflared tunnel create localkct
- Create config file at
/User/[username]/.cloudflared/config.yaml
- KC Tennis Cloudflare Tunnel Dashboard
- Note: Config for the www.kctennis.com domain is managed on the Cloudflared Tunnel Dashboard
- Run tunnel with
cloudflared tunnel run localkct
- Setup alias
alias localkct="cloudflared tunnel run localkct"
- Check tunnel status with
cloudflared tunnel info localkct
- run
bundle outdated
> update gems withbundle update
> run tests - run
bundle-audit update
- run
bundle-audit
- run
brakeman
- propshaft
- js_bundling_rails
- css_bundling_rails
- esbuild
- bootstrap
- sass
- stimulus
- turbo
- Devise
- Pundit
- System Permissions
- Postgres
- pghero
- blazer
- rspec
- capybara
- rubocop
- GoodJob
- SolidCache
- Noticed
- Topics/Subs
- ViewComponent
- AWS
- cloudfront or cloudflare
- inbound_requests_controller