Webpack error on Heroku Deployment

前端 未结 1 465
遇见更好的自我
遇见更好的自我 2021-01-24 03:22

Running my rails app locally works fine. Then I deployed it to Heroku successfully but when opening the app I get the error:

\"We\'re sorry, but something went wron

相关标签:
1条回答
  • 2021-01-24 04:13

    I had this error, tried to compile and also got :

    $ rake assets:precompile RAILS_ENV=production
    ...
    rails aborted!
    No such middleware to insert after: ActionDispatch::Static
    

    Solved it thanks to this thread by turning with an ENV

    # config/environments/production.rb
    config.public_file_server.enabled=true` # ENV['RAILS_SERVE_STATIC_FILES'].present? 
    
    0 讨论(0)
提交回复
热议问题