From: Eric Wong <normalperson@yhbt.net>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: unicorn, rails, and symlinked deployment
Date: Tue, 17 Nov 2009 22:20:24 +0000 [thread overview]
Message-ID: <20091117222023.GA24006@dcvr.yhbt.net> (raw)
In-Reply-To: <944a03770911170950i4fe79deay5f29b9904af58677@mail.gmail.com>
Michael Guterl <mguterl@gmail.com> wrote:
> First let me say thanks for Unicorn, it has helped us fill a gap that
> Passenger could not fill.
>
> Like many using Rails, we use capistrano for deployment. At the end
> of each deployment we use the standard capistrano deploy:cleanup task
> to remove old releases. Everything is fine until we cleanup the
> release directory from which unicorn_rails was originally launched.
> When this happens we get an error in our unicorn error log.
>
> reloading config_file=/home/deploy/public_html/rm/releases/20091116213921/config/unicorn.rb
> error reloading
> config_file=/home/deploy/public_html/rm/releases/20091116213921/config/unicorn.rb:
> Errno::ENOENT No such file or directory -
> /home/deploy/public_html/rm/releases/20091116213921/config/unicorn.rb
>
> I'm sure I'm not the only who has experienced this. Does anyone have
> any recommendations for handling this situation?
Hi Michael,
Unicorn was definitely implemented with Cap in mind. Which version of
Unicorn are you running? 0.94.0 got better symlink detection for
non-GNU/Linux systems, so if you start in
/home/deploy/public_html/rm/current, then it should detect it and use
/home/deploy/public_html/rm/current/config/unicorn.rb.
If you don't start in your "current" symlink dir, 0.94.0 also got
support for "working_directory" in your config file.
--
Eric Wong
next prev parent reply other threads:[~2009-11-17 22:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-17 17:50 unicorn, rails, and symlinked deployment Michael Guterl
2009-11-17 22:08 ` Michael Guterl
2009-11-17 22:20 ` Eric Wong [this message]
2009-11-18 15:34 ` Michael Guterl
2009-11-18 17:21 ` Eric Wong
2009-11-18 19:47 ` Michael Guterl
2009-11-19 1:05 ` Eric Wong
2009-11-19 1:46 ` Eric Wong
2009-11-19 2:36 ` Michael Guterl
2009-11-19 1:51 ` Eric Wong
2009-11-19 2:45 ` Michael Guterl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091117222023.GA24006@dcvr.yhbt.net \
--to=normalperson@yhbt.net \
--cc=mongrel-unicorn@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).