From: Jimmy Soho <jimmy.soho@gmail.com>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: javascript disappears
Date: Wed, 18 Aug 2010 23:20:49 +1000 [thread overview]
Message-ID: <AANLkTinP7=NJY8X2zZiyyh=nhJohdnCjRyNVf=vKqOfO@mail.gmail.com> (raw)
In-Reply-To: <20100818071410.GB29950@dcvr.yhbt.net>
> Aha! I believe there's an option for Bundler to use the /srv/app/shared
> directory with Capistrano. That's probably your best option.
I am using the shared bundler gems option, I use the example floating
around the internets:
run("cd #{release_path} && bundle install vendor/bundler_gems
--without development test --disable-shared-gems")
> You can also try force the environment variables with the
> before_exec hook in your config file:
>
> before_exec do |server|
> ENV['GEM_HOME'] = '/srv/app/current/vendor/bundler_gems'
> end
After a few hours hacking I've come to the conclusion that's the only
way it can work, for now.
Having delved into bundler I think Bundler.setup needs to change. I'll
file an issue for that with them.
PS. I: for those interested, this is now the unicorn-conf.rb file I'm
using, so I can now happily prune all old releases:
http://gist.github.com/534668
PS. II: While I trying out various things I found that if I modified
the before_exec hook, then deployed that code, send USR2, then it
executes the before_exec hook of the old master, not the new master.
So I then had to send a USR2 a second time to see the new code in
before_exec taking effect. Is that intentional behaviour?
PS. III: Haven't tested it yet, but in case a USR2 fails, and unicorn
reverts back to the old master, does the old master then have the new
environment variable values? Or does it run the before_exec hook again
for the old master?
Jimmy
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
next prev parent reply other threads:[~2010-08-18 13:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-17 23:38 javascript disappears Jimmy Soho
2010-08-18 0:02 ` Jimmy Soho
2010-08-18 1:14 ` Eric Wong
2010-08-18 2:23 ` Jimmy Soho
2010-08-18 2:45 ` Eric Wong
2010-08-18 3:39 ` Jimmy Soho
2010-08-18 7:14 ` Eric Wong
2010-08-18 13:20 ` Jimmy Soho [this message]
2010-08-18 23:34 ` Eric Wong
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='AANLkTinP7=NJY8X2zZiyyh=nhJohdnCjRyNVf=vKqOfO@mail.gmail.com' \
--to=jimmy.soho@gmail.com \
--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).