javascript_include_tag Rails 4 generating “/javascripts/” instead of “/assets” in production

后端 未结 5 1691
野趣味
野趣味 2021-02-01 02:31

I have a Rails 4 application with

<%= javascript_include_tag \"modernizr\", \"data-turbolinks-track\" => true %>

in the head. In deve

5条回答
  •  情歌与酒
    2021-02-01 03:26

    Be sure to precompile your assets in production by running this command:

    RAILS_ENV=production bundle exec rake assets:precompile
    

    The Rails Guide on the asset pipeline can give you more details: http://guides.rubyonrails.org/asset_pipeline.html#precompiling-assets

提交回复
热议问题