-
-
Notifications
You must be signed in to change notification settings - Fork 511
Helpful Commands
rails c
rails s start the app locally
rails routes list all website routes
rake after_party:run run afterparty tasks
rake db:reset reset your test data
yarn test lint javascript and run jest
heroku run rails c --app casa-production Open the rails console in the production environment(requires heroku access)
heroku run "DISABLE_DATABASE_ENVIRONMENT_CHECK=1 rails db:seed:replant --trace" --app casa-qa Truncate the QA database and reseed(requires heroku access)
heroku run "DISABLE_DATABASE_ENVIRONMENT_CHECK=1 rails db:seed:replant --trace" --app casa-r4g-staging Truncate the Staging database and reseed(requires heroku access)
bundle exec rpsec <PATH> run all tests in a file or all tests in a directory
bundle exec rails server -b 0.0.0.0 -p 4040
npm run test:cypress --exit-code 0
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
FeatureFlag.upsert({name: "show_additional_expenses", enabled: "false"}, unique_by: :name) disable
http://localhost:3000/rails/mailers An index of examples of every type of email