Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9185949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:24:09+00:00 2026-06-17T19:24:09+00:00

Ok, so I have Ruby on Rails running on an CentOS server and it’s

  • 0

Ok, so I have Ruby on Rails running on an CentOS server and it’s working fine. Currently trying to migrate the same app to a Ubuntu server which is working except for a particular folder of images, which I can’t seem to figure out what’s going on with.

I’m deploying via Capistrano so I’m deploying to current folder. Here’s my apache .conf file settings:

<Virtualhost *:80>
    ServerName myserver
   DocumentRoot  /var/www/folder/current/public
   <Directory /var/www/folder/current/public>
      Allow from all
      Options -Multiviews
   </Directory>
</VirtualHost>

The files exist in my app (under assets/vendors). I don’t get any errors during building or precompiling or deployment. When trying to serve the files on the new server, I get the following message:

Started GET "/system/vendors/logos/000/000/002/original/filename.png?1354897276" for 68.188.46.74 at 2013-01-25 00:51:37 +0000

ActionController::RoutingError (No route matches [GET] "/system/vendors/logos/000/000/002/original/filename.png"):
  actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'

I have tried permissions changes including 777 the tmp folder (which I would never normally do), just to see if that makes a difference.

It looks like the system assets pipeline folder is in my shared directory, but I don’t see a symbolic link to it like I do the logs directory. So I tried creating a symbolic link to it and that didn’t do anything.

I’m at a loss. Any suggestions?

EDIT 1/25

When I posted this, I failed to notice it was a paperclip uploaded image and that is why these images are in the system path. So I’m calling them via views from the logo attribute which is defined in the model like so:

  has_attached_file :logo

And in my view, I’m calling it via this:

          <%= image_tag(vendor.logo.url, :class => 'rounded'); %>

Again, this works on two other servers, so the migration is clearing affecting it and I think it may be permissions related?

ImageMagick is installed on the server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:24:10+00:00Added an answer on June 17, 2026 at 7:24 pm

    These files aren’t being served because Rails will not serve files from the app/assets, lib/assets or vendor/assets directories while it’s running in the production environment.

    This file should really be located within the public directory, at the path that the request is specifying. By placing it there, you have the added benefit of that the file will be served by the web server that’s running Passenger (Apache/Nginx), rather than Rails. This means the request will be substantially faster than if it were served by Rails.

    Please ensure that all static files you wish to serve are located in the public directory and its subdirectories for maximum speed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ruby on rails app running a server and sometimes it needs
I have a Ruby on Rails app running on my server, and I can't
I have an app written in ruby on rails which is running fine on
I currently have Ruby on Rails installed via RVM in Ubuntu 12.04. The default
I have a Ruby on Rails app running on Heroku. Is there an easy
If I have a Ruby on Rails application running on my Apache shared server
I have a Ruby On Rails local server running which serves me the following
I have a Ruby on Rails app that I'm working on and I'm having
I have a ruby on rails app running on passenger / nginx. The app
We have a ruby on rails application running on an Ubuntu Sever. When I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.