Skip to content

trueheart78/caring-for-karen-sue

Repository files navigation

Caring For Karen Sue Circle CI Ruby Style Guide

Ruby 3.1 and Rails 6.1

Environment Variables

ROLLBAR_ACCESS_TOKEN
GOOGLE_ANALYTICS_KEY
GOOGLE_ANALYTICS_SITE
ADMIN_EMAIL
SPARKPOST_API_KEY
SKYLIGHT_AUTHENTICATION

Dotenv Files

The stock .env file includes the basics. You should create both an .env.local and an .env.test file, that include real values.

cp .env .env.local
vim .env.local

Running Specs

RSpec files exist in spec/.

bundle exec rspec

Viewing Mailers

First, boot the server.

bundle exec rails s

Then head to http://localhost:3000/rails/mailers.

Code Coverage

You can skip the simplecov code coverage by using the SKIP_COVERAGE environment variable.

SKIP_COVERAGE=true bundle exec rake spec

Heroku Deployment

Currently, Heroku deployment is automatic upon a main branch commit passing CI.

Database Migrations

These have been automated on deploy, using the release section of the Procfile.