carbonfive/raygun — pull request #103 by christiannelson (2013-06-16 20:53:45+00:00)
Title: Asset compilation not working in production for rails 4

To reproduce:

After initial startup steps outlined in the readme
in your console run: `RAILS_ENV=production foreman start`

Problem behavior:
The server returns a 404 for both css and javascript files linked to from the html head. Both times I've run into this it's been after my first deploy to heroku where I load up the page and see that none of the styles are there.

Expected behavior:
The server should compile and serve the assets so that the website displays as seen in development.

Fix:
This issue can be fixed by setting the following flags in production.rb:

```ruby
config.serve_static_assets = true
config.assets.compile = true
```

I figured out that this worked and kept chugging along. I didn't take the time to figure out if there are unintended repercussions of toggling these flags out of their default state (false for both).

I'll submit a pull request.