-
-
Notifications
You must be signed in to change notification settings - Fork 478
Helpful Commands
Table of Contents generated with DocToc
- Terminal Commands - Open the Rails Console - Start the App Locally - List All Website Routes - Run Afterparty Tasks - Reset Your Test Database - Open the Rails Console in the Production Environment(requires heroku access) - Truncate database and reseed(requires heroku access) - Run All Tests in a File or All Tests in a Directory - run cypress tests
-
Rails Console Commands
- Send a supervisor weekly digest email(opens in new tab)
- Delete all active storage attachments
- Set the court report template for a
casa_org
- URLs
rails c
rails s
rails routes
Run Afterparty Tasks
rake after_party:run
rake db:reset && rake after_party:run
heroku run rails c --app casa-production
heroku run "DISABLE_DATABASE_ENVIRONMENT_CHECK=1 rails db:seed:replant --trace" --app casa-qa
in QA
heroku run "DISABLE_DATABASE_ENVIRONMENT_CHECK=1 rails db:seed:replant --trace" --app casa-r4g-staging
in Staging
bundle exec rpsec <PATH>
bundle exec rails server -b 0.0.0.0 -p 4040
npm run test:cypress --exit-code 0
Run jest tests
yarn test
yarn lint
show linting errors
yarn lint:fix
try to automatically fix as many linting errors as possible
SupervisorMailer.weekly_digest(Supervisor.first).deliver_now
ActiveStorage::Attachment.all.each { |attachment| attachment.purge }
casa_org.court_report_template.attach(io: File.new(PATH TO DOCUMENT), filename: "document.docx")
FeatureFlagService.enable!("show_additional_expenses")
enable
FeatureFlagService.disable!("show_additional_expenses")
disable
http://localhost:3000/rails/mailers An index of examples of every type of email