Bug #6753
[API] Asset pipeline does not work unless config/environments/production.rb is present at buildtime and runtime
Start date:
07/23/2015
Due date:
% Done:
0%
Estimated time:
Story points:
-
Description
API server still has the problem that was fixed in Workbench in 318e3d183c3800863731a20a10f1b8bf9cc82280. The Workbench fix didn't work as is: it makes "rake assets:precompile" crash, see commit message @ caa9e89d531f03838e64d36d050be9d96e7c6c96.
This could be a matter of updating rails/actionpack, but more likely it needs something more subtle.
Related issues
History
#1
Updated by Tom Clegg over 5 years ago
- Description updated (diff)
#2
Updated by Tom Clegg over 5 years ago
- Description updated (diff)
#3
Updated by Tom Clegg over 5 years ago
To confirm that this is truly a problem for API server (Rails3) the same way it was in Workbench (Rails4):
- Delete your environment/production.rb
- Delete precompiled assets
- Run
RAILS_ENV=production rake assets:precompile
- Change one of the asset pipeline config settings (e.g., digest, compress) in the production part of
config/application.yml
- Delete / move aside precompiled assets
- Run
RAILS_ENV=production rake assets:precompile
- Did assets get compiled with your new settings? (And if you run a server, does it use your new settings?) If so, it sounds like this bug doesn't exist.