Skip to content

Assets not loading when mounted as Rails Engine in production environment #87

@ckuwanoe

Description

@ckuwanoe

Hello,

I've installed the gem and mounted as an engine, however I am getting an unstyled page and 404 errors with the assets on my production instance.

screenshot 2016-09-30 15 24 42

screenshot 2016-09-30 15 25 01

This is on a Ubuntu 14.04 server with Rails 4.1.9 and Ruby 2.1.2. I have the latest gem installed (1.5.1). It renders fine on my development (OSX 10.12.) Am I missing a step? I also have the Sidekiq web interface mounted and no issue with the assets there. I've mounted it in the same authentication block I use for Sidekiq as well.

  authenticate :admin_user do
    mount Sidekiq::Web => '/jobs'
    mount PgHero::Engine, at: "pghero"
  end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions