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 9189765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:18:31+00:00 2026-06-17T20:18:31+00:00

When I deploy my app to the production environment (using capistrano), I have been

  • 0

When I deploy my app to the production environment (using capistrano), I have been getting an error during asset pre-compilation:

  * executing `deploy:assets:precompile'
  * executing "cd /home/ubuntu/projects/Marketplace-web/releases/20130124162353 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile"
    servers: ["server_name"]
    [server_name] executing command
*** [err :: server_name] rake aborted!
*** [err :: server_name] File name too long - /home/ubuntu/projects/Marketplace-web/releases/20130124162353/public/assets/assets/assets/assets/assets/assets/assets/assets/assets/assets/assets/assets/assets/widgets/jquery.jcarousel-d505e569ed1040e0b45bc33e0e49f117.js-26b4b41e4a45cb353ba7e39510893ace-93b194138c96579222ca08f9651946a7-43eca25d0cc511b37176bc58d8575e1a-1b97916c47bfa22545013b3751cb59e4-d9043106773924d12596e08b349f00dc-b7b7aa9bf440ca19896b1103d7651728-c40c1f2b8b11e6de163fefea9db6778c.gz+

I found a comment on http://railscasts.com/episodes/335-deploying-to-a-vps?view=comments , saying the issue can be solved by removing this from my config/application.rb:

config.assets.paths << "#{Rails.root}/public"

I removed it, and the task stopped re-compiling my pre-compiled, static assets in the public/assets folder, but my question is: Why was it doing that in the first place? Isn’t that config line intended to tell Rails where to find my other, non-compiled, static assets? Why would it be trying to compile assets in the config.assets.paths array? Don’t I need that line so Rails knows where to find my static assets?

Am I doing it all wrong? Where should I be putting my non-compiled, static assets and how should I tell Rails where to find them?

  • 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-17T20:18:33+00:00Added an answer on June 17, 2026 at 8:18 pm

    Check the Rails Assets Configuration Documentation:

    • config.assets.paths contains the paths which are used to look for assets. Appending paths to this configuration option will cause those paths to be used in the search for assets.

    Do not add the output directory to the array of input directories. Otherwise, the output of the previous assets-compilation run will be included as yet another input into the next assets-compilation run.

    Your compilable assets should typically be in app/assets if you wrote them or vendor/assets if you didn’t. Why not put jquery.carousel.js into vendor/assets/javascripts/?

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

Sidebar

Related Questions

I'm trying to deploy the first rails application using Capistrano. I'm getting an error
I am using JBoss 4.2.2.GA app server in a development environment. I have a
I'm ready to deploy my Rails 3.1 app into production, and since I'm using
I have a project rails 3.1 in production environment. This is my deploy.rb now:
I have a Ruby on Rails 3.2 app using bundler and capistrano for deployment.
I have always been using virtualenv for testing my app in localhost since I
Trying to test deploy a simple Rails 3.1 app in production mode, using the
I wanted to deploy my app into my local server using apache and passenger.
I am trying to deploy my app to Heroku however I rely on using
I use capistrano to deploy my app to a machine that uses memcache. 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.