sepastian/capistrano-unicorn — pull request #7 by joshuaballoch (2014-02-27 06:56:50+00:00)
Title: Rack Environment - Database Configuration Error

I was getting an error stopping my capistrano from successfully deploying unicorn:

```

/var/www/www.gigabase.org/shared/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_specification.rb:47:in `resolve_hash_connection': database configuration does not specify adapter (ActiveRecord::AdapterNotSpecified)

```

After following up, I found that this error is that the rack_env for unicorn was incorrectly being set as "deployment" (rather than "staging"). staging has a database configuration in my application, but "deployment" is nonexistent.

I suggest changing the ```set :unicorn_rack_env ``` line to use the same as rails_env to reduce this error.