Displaying 7 results from an estimated 7 matches for "stderr_path".
2012 Mar 22
1
[PATCH] make stderr_path/stdout_path support IO objects directly
---
lib/unicorn/configurator.rb | 2 +-
lib/unicorn/http_server.rb | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb
index 89cbf5c..c9b6816 100644
--- a/lib/unicorn/configurator.rb
+++ b/lib/unicorn/configurator.rb
@@ -559,7 +559,7 @@ private
def set_path(var, path) #:nodoc:
case path
- when
2009 Nov 19
3
Log File Location
This may be a dumb question, but where can I see the error logs that
are usually displayed when unicorn is not daemonized? The
production.log file is empty in my app. Everything is currently
running as root.
2012 Dec 04
2
403 Forbidden from nginx when unicorn started in debug mode
...or developent:
# config/unicorn.rb
env = "development"
preload_app true
timeout 30
listen "/tmp/unicorn.sock", :backlog => 64
if env == ''development''
pid
"/home/jet/RailsApps/spree/aceleathergoods/tmp/pids/unicorn.aceleathergoods.pid"
stderr_path "/var/www/aceleathergoods/shared/log/unicorn.stderr.log"
stdout_path "/var/www/aceleathergoods/shared/log/unicorn.stdout.log"
end
before_fork do |server, worker|
if defined?(ActiveRecord::Base)
ActiveRecord::Base.connection.disconnect!
end
old_pid = "#{s...
2011 Jul 01
5
Timestamp in unicorn logs
I would love to see a timestamp in each line of unicorn stderr and
stdout logs. Has this been considered? Thanks.
Best,
alex sharp
2011 May 19
2
unicorn doesn't restart properly after cap deploy (not using Bundler)
.../pipermail/mongrel-unicorn/2010-October/000717.html
I''m not using Bundler, and I have working_directory set in my unicorn config:
Unicorn::HttpServer::START_CTX[0] =
"/opt/ruby-enterprise-1.8.7-2010.02/bin/unicorn_rails"
pid "/var/www/lookbook/shared/pids/unicorn.pid"
stderr_path "/var/www/lookbook/shared/log/unicorn.stderr.log"
stdout_path "/var/www/lookbook/shared/log/unicorn.stdout.log"
preload_app true
if GC.respond_to?(:copy_on_write_friendly=)
? GC.copy_on_write_friendly = true
end
before_fork do |server, worker|
? STDERR.puts "BEFORE FORK:&qu...
2012 Jan 31
12
FreeBSD jail and unicorn
...I haven''t found anything that gives some indication.
I''ve tried unicorn version 4.1.1 and 4.2.0. The FreeBSD version is
8.2-STABLE amd64.
That my config:
---
listen "/home/deploy/staging/unicorn.sock"
pid "/home/deploy/staging/unicorn.pid"
preload_app true
stderr_path "/home/deploy/staging/unicorn.stderr.log"
stdout_path "/home/deploy/staging/unicorn.stdout.log"
before_fork do |server, worker|
old_pid = "#{server.config[:pid]}.oldbin"
if old_pid != server.pid
begin
process_id = File.read(old_pid).to_i
puts &qu...
2012 Aug 31
1
after_fork - ActiveRecord::AdapterNotSpecified
...= ''/home/frankr/tmp/sinatra/''
pidfile = " #{@dir}log/unicorn.pid"
worker_processes 3
preload_app true
GC.respond_to?(:copy_on_write_friendly=) and GC.copy_on_write_friendly = true
timeout 30
listen ''/tmp/sinatra.socket'', :backlog => 64
pid pidfile
stderr_path "#{@dir}log/unicorn.stderr.log"
stdout_path "#{@dir}log/unicorn.stdout.log"
before_fork do |server, worker|
? defined?(ActiveRecord::Base) and
??? ActiveRecord::Base.connection.disconnect!
? end
end
after_fork do |server, worker|
? defined?(ActiveRecord::Base) and
??? ActiveRe...