Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Redirect logs to stdout
Browse files Browse the repository at this point in the history
This is one of the points of http://12factor.net/. It turns out to be quite
useful in this case to avoid issues with logs. Basically by spitting into the
stdout we allow deployers to manage logs as they want. For the different
setups:

- docker-compose: it's integrated with docker-compose logs.
- vagrant & rpm: by default saved in /var/log/apache2/error_log.
- NGinx setup: handled by puma.

Fixes #626

Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
  • Loading branch information
mssola committed Jan 22, 2016
1 parent 94e601e commit dfc72b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ gem "net-ldap"
gem "redcarpet"
gem "font-awesome-rails"
gem "bootstrap-typeahead-rails"
gem "rails_stdout_logging", group: [:development, :staging, :production]

# Used to store application tokens. This is already a Rails depedency. However
# better safe than sorry...
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ GEM
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.2)
loofah (~> 2.0)
rails_stdout_logging (0.0.4)
railties (4.2.2)
actionpack (= 4.2.2)
activesupport (= 4.2.2)
Expand Down Expand Up @@ -351,6 +352,7 @@ DEPENDENCIES
quiet_assets
rack-mini-profiler
rails (~> 4.2.2)
rails_stdout_logging
redcarpet
rspec-rails
rubocop
Expand Down

0 comments on commit dfc72b3

Please sign in to comment.