Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 719 Bytes

0-installation.md

File metadata and controls

35 lines (23 loc) · 719 Bytes
redirect_from
/docs/0-installation.html

Installation

Caffeinate is a Ruby Gem meant to be used with the Ruby on Rails framework.

gem 'caffeinate'

It's a Rails Engine that can be injected into your existing Ruby on Rails application.

Setting up Caffeinate

After installing the gem, you need to run the install generator.

$ rails g caffeinate:install  

The generator adds these core files:

  • app/campaign_mailers/application_campaign.rb
  • config/initializers/caffeinate.rb

Now, migrate your database before starting the server:

$ rails db:migrate

Next, configure Caffeinate.