且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在heroku上运行rails应用程序,无法在/ public文件夹中看到静态页面

更新时间:2023-10-19 07:51:52

Per this article, you will need to tell Rails to serve static assets itself with:

config.serve_static_assets = true

in your config/environments/production.rb