unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Deployment with Capistrano and Foreman
@ 2012-02-05 13:17 Dmytrii Nagirniak
  2012-02-05 21:45 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Dmytrii Nagirniak @ 2012-02-05 13:17 UTC (permalink / raw)
  To: mongrel-unicorn@rubyforge.org

Hi guys,

I wonder how do you deploy Unicorn Rails apps using Foreman and the upstart.

The things I'm not sure how to deal with are:

- restarting the Unicorn with no downtime. With upstart I think the master process gets restarted.
- running app as unprivileged user (not sure how to use Forman with upstat at all here).

A lot of things are really related to Foreman (the ruby one), but it would help to hear some of the ways you guys do it.


Cheers,
Dmytrii.
http://ApproachE.com
_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Deployment with Capistrano and Foreman
  2012-02-05 13:17 Deployment with Capistrano and Foreman Dmytrii Nagirniak
@ 2012-02-05 21:45 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2012-02-05 21:45 UTC (permalink / raw)
  To: unicorn list

Dmytrii Nagirniak <dnagir@gmail.com> wrote:
> I wonder how do you deploy Unicorn Rails apps using Foreman and the upstart.
> 
> The things I'm not sure how to deal with are:
>  
> - restarting the Unicorn with no downtime. With upstart I think the master
> process gets restarted.

I'll defer to actual Foreman/upstart users for this.  Any solution that
works with nginx (while keeping the master process in use) should work
with unicorn, too.  I designed unicorn so it could be managed nearly
identically to nginx.

> - running app as unprivileged user (not sure how to use Forman with
> upstat at all here).

You can use the "user" directive in the unicorn config file, this
only affects the worker processes, though.
http://unicorn.bogomips.org/Unicorn/Configurator.html#method-i-user

You can always use su or sudo to ensure the master process is
unprivileged, too.
_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-05 21:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-05 13:17 Deployment with Capistrano and Foreman Dmytrii Nagirniak
2012-02-05 21:45 ` Eric Wong

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).