Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

assets:precompile not working #4

Open
bandtank opened this issue Aug 21, 2015 · 2 comments
Open

assets:precompile not working #4

bandtank opened this issue Aug 21, 2015 · 2 comments

Comments

@bandtank
Copy link

reset.css and print.css aren't generated (I know you already know because of a comment on a commit), but I think the problem has to do with the path. I cloned this repo, modified lib/swagger_engine/engine.rb as follows:

       app.config.assets.precompile += %w(/absolutepath/print.scss /absolutepath/reset.scss)

and it worked perfectly. I've tried using relative paths, but nothing I've tried has worked. Do you know how to do that?

@bandtank
Copy link
Author

One thing to note is that there's a big difference between production and development mode. If you don't turn on serve_static_files to true in config/environments/production.rb, it won't work. We have Nginx pointing to our API's public folder, which serves the same purpose, but this might be a helpful tip for someone.

@scarroll32
Copy link

Interestingly this seems to have been catered for in the Engine, but is not working

https://github.com/batdevis/swagger_engine/blob/master/lib/swagger_engine/engine.rb#L11-L13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants