gpt4 book ai didi

ruby-on-rails - "Asset was not declared to be precompiled in production"即使我处于开发模式

转载 作者:行者123 更新时间:2023-12-05 06:24:21 28 4
gpt4 key购买 nike

这是完整的错误:

Asset was not declared to be precompiled in production.
Add `Rails.application.config.assets.precompile += %w( tutorial.js )` to `config/initializers/assets.rb` and restart your server

当服务器启动时,它说它正在开发中:

=> Booting Puma
=> Rails 5.1.7 application starting in development

最佳答案

有时清除 tmp 会有帮助。 rake tmp:clear

关于ruby-on-rails - "Asset was not declared to be precompiled in production"即使我处于开发模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57768296/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com