Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Fixes to allow things to work in production mode #4

@catmando

Description

@catmando
  1. Do not add these lines to application.rb:

    config.eager_load_paths += %W(#{config.root}/app/views/components)
    config.autoload_paths += %W(#{config.root}/app/views/components)

They are not longer necessary (since public models are moved), and they break production.

  1. The require_tree in models.rb can only execute in Opal land:
# app/models/models.rb
require_tree './public' if RUBY_ENGINE == 'opal' # add the guard

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions