Gems listed there can be installed with bundle install -gemfile v and the resulting lock file is gitignored too. If you want to add specific gems for development that may not be interesting for other developers, you can add a v (ignored by our. Use yard doc to generate documentation and yard server -reload or yard server -gems to start a local documentation server. ApplicationPresenter: a subclass of ApplicationDecorator for presenters, includes tag helpers.Īll custom classes are fully documented with yard and come with generators.ApplicationForm: Minimal form class based on ActiveModel.ApplicationDecorator: lightweight alternative to Draper or similar gems.Polyfills are included automatically thanks to See for configuration options.
This will allow you to continue working on your JS code without losing application state in the browser. Import React from "react" import export default hot ( Welcome ) Note that for everything to work properly on Heroku you need to set up your buildpacks like this: To connect this to one of several potential user roles the polymorphic authenticatable relationship is used. The following default Rails gems have been removed:Īuthentication concerns (your typical Devise configuration) are handled by the Account model. rack-timeout: Configured via env variables, see documentation.No need to require 'rails_helper, we do it in.
Rspec has been preconfigured for Rails 5.1+ system tests. We default to threads only, no workersĪll of the following have been installed and pre-configured: Base system Set by Heroku Ruby buildpack, set manually on other platforms if needed Limit for Rack::Timeout, defaults to 15 seconds Port Puma will listen on, defaults to 3000 Will be added to the main application layout if set Used for production env, automatically set by Heroku Used to report frontend errors to Sentry.ĭisables HTTP TRACE method if set to true/t/1 If you prefer to use ActiveJob please see the configuration/options that were removed in 59cf38d. We prefer to use vanilla Sidekiq for worker/queue management.The app is preconfigured for Google Analytics, just add GOOGLE_ANALYTICS_ID to the environment.New Relic is pre configured in config/newrelic.yml, but you need to comment in the environment variables for it work on Heroku (lines 10 and 17).Both are optional - errors will only be reported if the respective variable is set. Set SENTRY_DSN_BACKEND and SENTRY_DSN_FRONTEND environment variables.This way you can keep frontend and backend errors separate. Create two projects under your organization on Sentry.If you want to use Sentry, you'll need to:.If you don't plan on tracking the template, you can remove the remote, otherwise rename it and add your new remote as appropriate.:.If you want to use it install packages with npm install / yarn, otherwise remove. ESLint is preconfigured for modern JS with React support (using Prettier).If you plan on using Figaro, copy config/ to config/application.yml.