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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:40:36+00:00 2026-05-30T09:40:36+00:00

Precompiling assets on the production server is very slow. So I have decided to

  • 0

Precompiling assets on the production server is very slow. So I have decided to recompile them on the development machine and upload assets to the Amazon S3 by jammit. Everything’s done but I have some negative problems:

  1. I have to include public/assets directory to git control. Because if public/assets directory is empty on the production server fails
  2. If I precompile assets on the development machine application.js includes in the HTML as compressed and that way I have duplicated js code. Changing js doesn’t make any effect because precompiled application.js interrupts this code.

That way my development process includes following steps:

  1. Remove precompiled assets if I’m going to change js or css
  2. Do some changes
  3. Precompile assets
  4. Upload assets to S3 by jammit-s3
  5. Do commit and push my changes including assets to the git server
  6. Deploy by capistrano

My questions are:

  1. Is it possible to configure development environment don’t include compressed application.js if I have it in public/assets directory?
  2. Is it possible to configure production environment to work with empty public/assets directory? Assets will only be on the S3 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-05-30T09:40:37+00:00Added an answer on May 30, 2026 at 9:40 am

    I resolved this problem by including assets dir in gitignore and exclude only one file – public/assets/manifest.yml and production server works correctly now, i.e. config.action_controller.asset_host = "http://assets.example.com" works. It requires only manifest.yml file

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

Sidebar

Related Questions

Precompiling assests with RAILS_ENV=production rake assets:precompile gave error such as: rake aborted! undefined method
Since I'm running my app on the Bamboo stack I'm precompiling my assets and
We have a large web app installation, using Apache/Tomcat/Jasper and jboss. In development environment,
I'm pushing an app to Heroku and I get the error Precompiling assets failed,
I have a question about precompiling ASP.NET web application projects from TeamCity. This is
What does precompiling a statement do, because I have seen that if I write
I have a WPF-application that uses several background threads for precompiling LINQ-queries and precaching
I have an issue with background images not showing up in production mode in
I have that sneaking feeling I'm missing something obvious: I ran RAILS_ENV=production bundle exec
In short, what works faster: SessionFactory precompiling XML configuration, or Fluent NHibernate providing configuration

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.