using rails_env instead of rack_env
using unicorn port instead of socket