Moon soon
Moon soon

Reputation: 2856

Rails generate incorrect asset path with set 'config.assets.compile = false'

I generate a new rails application, and run it in production, but the assets path generate incorrect. Please notice the follow picture.

enter image description here

And even though set config.assets.prefix = '/assets' not work too

I am using rails 4.2.4 and there is the demo project on github

Upvotes: 0

Views: 49

Answers (1)

Wentao Liu
Wentao Liu

Reputation: 71

You need to execute RAILS_ENV=production rake assets:precompile manually if the config.assets.compile is set to false.

Upvotes: 1

Related Questions