-
Copy
.env.exampleinto.env -
Set your
post_server_itemtoken asROLLBAR_ACCESS_TOKENin.envToken could be found at
https://rollbar.com/YOUR_ACCOUNT/YOUR_PROJECT/settings/access_tokens/where
YOUR_ACCOUNT- your Rollbar account nameYOUR_PROJECT- your project name in this account
-
Set
NEWRELIC_LICENSE_KEYat.env
[Optional] You could also setup GITHUB_USERNAME, GITHUB_REPOSITORY_NAME and ROLLBAR_PROJECT_NAME to generate correct links at main page
To build:
make app-build
To create migrate and populate database:
make app-init
Run app
make app
Go to demo-app in English, in Russian
Github actions config for main branch is located at .github/workflows/main.yml
Steps in actions:
- Build app
- Create and migrate database
- Run rubocop
- Run tests
- Export artifacts for coverage
- Upload coverage report to coveralls
Rollbar config for server side located at config/initializers/rollbar.rb
-
Set token in
.env. Look Prepare section -
Send test error to Rollbar
rake rollbar:testor go to Page what will raise an error
-
Check errors at
https://rollbar.com/YOUR_ACCOUNT/all/items/where
YOUR_ACCOUNT- your Rollbar account name
Bullet config located at config/environments/development.rb
- Request with N+1
app/controllers/web/actors_n_plus_one_controller.rb - Request without N+1
app/controllers/web/actors_controller.rb
New relic config is located at config/newrelic.yml
- Make several requests with and without N+1.
- Look at dashboard in New Relic.
- Coverage folder should be added into
.gitignore - Generate coverage at CI or at demand
SimpleCov config is located at test/coverage_helper.rb
Look at /coverage directory for coverage report if coverage folder is default.
In this project coverage folder is set to public/coverage
Look at Coveralls site for reports