ran rake middleware and enabled accel-redirect in production.rb