rapid7 / warvox

http://www.warvox.org/
203 stars 55 forks source link

Client side files are not loaded #58

Open el4zar opened 6 years ago

el4zar commented 6 years ago

There are several files that doesn't get loaded on the main page this includes: application.css application.js and logo_bigger

Is there any solution for this? I can see in developer tools that these files get 404 status code...

foxyganon commented 6 years ago

By chance does this result in pages not rendering graphics and rich text properly? I downloaded WarVox around February and its not loading any pictures or rich content for me. The content files exist and the css files appear to be the pointing to the correct locations but nothing but plain-text and form input fields and buttons show.

mainframed commented 6 years ago

I just had this problem. The fix is in the README for anyone else here:

https://github.com/rapid7/warvox/blob/master/README.md#assets

tit0n commented 5 years ago

To get assets to show up, you need to first compile assets in production environment:

RAILS_ENV=production bundle exec rake assets:precompile This will compile all static assets into public folder.

Next, you need to enable the RAILS_SERVE_STATIC_FILES environment variable through the terminal:

export RAILS_SERVE_STATIC_FILES=true