Set the environment variable RAILS_ENV=staging
before you run the command. You can do it on the same line even (in Bash):
$ RAILS_ENV=staging bundle exec unicorn...
You would have to have the environment set up in multiple files such as config/environments/
and config/database.yml
.