/bearonrails

Bearonrails is the base Rails application generator.

Primary LanguageRubyOtherNOASSERTION

Bearonrails

RubyGems RubyGems

Bearonrails is the base Rails application generator.(For Rails 4.2+)

Installation

First install the bearonrails gem:

$ gem install bearonrails

Then run:

$ bearonrails project_name

New Relic

For New Relic, edit .env, set New Relic License key to NEW_RELIC_LICENSE_KEY

NEW_RELIC_APP_NAME=change-this-to-your-app-name
NEW_RELIC_LICENSE_KEY=change-this-to-your-new-relic-license-key

Rubocop

For code style, edit .rubocop.yml to customize coding style rules. See sample(https://github.com/bbatsov/rubocop/blob/master/config/default.yml).

You could integrate your editor with rubocop, see rubocop editor-integration.

Dotenv

Use .env to manage environment varibales. And load environment varibales set in .env file when Rails Application start.

See config/application.rb

# Added this line
Dotenv.load

Gems

Rails console

Developing

Coding Style

Testing

Environment

Metric

Reference:

xdite/bootstrappers

超棒的 rails console 設定

Rails Application Template Guide

MIT License