Skip to content

Instantly share code, notes, and snippets.

View juliangiuca's full-sized avatar

Julian Giuca juliangiuca

View GitHub Profile
{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "service.name",
"value": {
"stringValue": "query"
}

Using Unicorn with Upstart

This configuration works with Upstart on Ubuntu 12.04 LTS

The reason why it needs to be done this way (i.e. with the pre-start and post-stop stanzas), is because Upstart is unable to track whever Unicorn master process re-execs itself on hot deploys. One can use it without hot-deploys and run Unicorn in foreground also, it then only needs one exec stanza.

This presumes you are not using RVM, so no voodoo dances.

platforms :ruby_19 do
gem 'debugger'
end
platforms :ruby_18 do
gem 'ruby-debug'
end