ruby-hyperloop / ruby-hyperloop.io

The project has moved to Hyperstack!! - Ruby Hyperloop Website and Documentation
https://hyperstack.org/
22 stars 18 forks source link

Running in Production #39

Closed barriehadfield closed 6 years ago

barriehadfield commented 7 years ago

config.assets.js_compressor = Uglifier.new(compress: { drop_console: true }) this will cut out all console.log lines from assets so that line above should go to production.rb in rails app downside is that this cleans up all console commands at once any console.info done at prod will be removed in assets compilation

catmando commented 7 years ago

so @noma4i has a PR on the generator to fix most of the issues as well.

The only other problem I encountered is not HyperLoop or Opal specific. I have asked this question on SO: http://stackoverflow.com/questions/40937012/rails-config-assets-digest-defaulting-to-false-in-production

for now it would be good to add that to the doc as well even though its not Opal specific... (maybe rails 5 bug?)

noma4i commented 7 years ago

Sorry for delay. Will update generators to include that line as commented out.