Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
Merge pull request #683 from 18F/asset-logging
Browse files Browse the repository at this point in the history
silence logging of requests for assets in development
  • Loading branch information
pkarman committed Oct 8, 2015
2 parents b0d0026 + f1cd75d commit 8952864
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .env.example
Expand Up @@ -10,7 +10,6 @@ MYUSA_SECRET: consumer_secret_key
# optional
#
# API_ENABLED=true
# ASSETS_DEBUG=true
# BULLET_ENABLED=true
# BUDGET_REPORT_RECIPIENT
# DATABASE_URL
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -61,6 +61,7 @@ group :development do
gem 'railroady'
gem 'letter_opener'
gem 'letter_opener_web'
gem 'quiet_assets'
gem 'spring'
gem 'spring-commands-rspec'
end
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Expand Up @@ -301,6 +301,8 @@ GEM
puma (2.14.0)
pundit (1.0.1)
activesupport (>= 3.0.0)
quiet_assets (1.1.0)
railties (>= 3.1, < 5.0)
rack (1.6.4)
rack-cors (0.4.0)
rack-test (0.6.3)
Expand Down Expand Up @@ -483,6 +485,7 @@ DEPENDENCIES
pry-rails
puma
pundit (>= 1.0.0)
quiet_assets
rack-cors
rack_session_access
railroady
Expand Down
2 changes: 1 addition & 1 deletion config/environments/development.rb
Expand Up @@ -25,7 +25,7 @@
# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
config.assets.debug = ENV['ASSETS_DEBUG'] ? true : false
config.assets.debug = true

# Use letter opener to avoid sending real emails. The "web" version makes
# the emails visible at /letter_opener
Expand Down
2 changes: 1 addition & 1 deletion doc/setup.md
Expand Up @@ -37,7 +37,7 @@ Per [the Twelve-Factor guidelines](http://12factor.net/config), all necessary co
## Starting the application

```bash
PORT=3000 ASSETS_DEBUG=true ./script/start
PORT=3000 ./script/start
open http://localhost:3000
```

Expand Down

0 comments on commit 8952864

Please sign in to comment.