Can not get css file when unicorn running in production mode

Dear all

I’m newbie to unicorn server.
recently I got a problem when I was trying to run unicorn in production
model.
like command unicorn -E production. then I lost all my css styles in
the browser.
But everything works fine when I just type unicorn

when unicorn running in the production environment, I was trying to
access my css file in the browser by the url
http://127.0.0.1:8080/stylesheets/scaffold.css’, I got 'No route
matches “/stylesheets/scaffold.css”
but it worked fine when unicorn running in the development environment.

Please help me, it’ll be very appreciated.

Best Regards,
Lewis

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs