Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I was finally able to resolve this issue. In case someone else runs into this problem, I thought I would document the steps that I took to resolve it. </p> <p>I ran my application locally in production mode (<code>RAILS_ENV=production rails s</code>) and was able to duplicate the error that I received on Heroku on my local machine. </p> <p>I copied my active_admin.css.scss and active_admin.js to the /vendor/assets directory. Since <code>y app</code> kept telling me that it was missing active_admin/mixins I also copied the entire active_admin directory in assets to the vendor/assets directory. I am not sure if this is necessary or not. </p> <p>From a Heroku perspective, I've been told, but can not confirm, that production.rb is not read during the precompile so all settings need to be defined in application.rb. So, I made sure that I had the following settings in application.rb - </p> <pre><code>#Added to fix devise/active admin issue ? config.assets.initialize_on_precompile = false # Precompile additional assets. Defaults to [application.js, application.css, non-JS/CSS] config.assets.precompile += ['active_admin.css.scss', 'active_admin.js'] </code></pre> <p>I found most of above tips around the net (on stackoverflow, heroku, github, etc.). The part that I did not see was the need to make change Bundler.require in application.rb from: </p> <pre><code>Bundler.require(*Rails.groups(:assets =&gt; %w(development test))) </code></pre> <p>to: </p> <pre><code>Bundler.require(:default, :assets, Rails.env) </code></pre> <p>Once I made those changes then I could push the code onto Heroku and let it precompile the assets for me. I hope that this can help someone save some time in resolving this issue. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload