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

  • SEARCH
  • Home
  • 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 8298741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:53:41+00:00 2026-06-08T15:53:41+00:00

I recently deployed a first iteration of a project to Heroku. Because I precompiled,

  • 0

I recently deployed a first iteration of a project to Heroku. Because I precompiled, all of my assets used during development are now in the public/assets and public/system folders.

I am aware of two options for accessing my assets during development. The default option seems to be to allow the public/assets files to override my app/assets files. However, if I do this, any CSS changes I make in app/assets is not reflected.

The alternative option is to access ONLY the app/assets folder through:

config.serve_static_assets = false

However, by doing this, I can’t see any of my images during development, as they have already been precompiled and moved to public/system

Is there a way to access my CSS/JS files from app/assets, yet still load my images from public/system?

Or am I supposed to do all of my CSS/JS development out of the public/assets folder? Any feedback would be much appreciated.

  • 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-08T15:53:42+00:00Added an answer on June 8, 2026 at 3:53 pm

    After a deploy I like to run

    rake assets:clean
    

    to get rid of the compiled/compressed assets in public/assets. This let’s Rails look back to my app/assets directory in development mode since none of my assets are in public/assets anymore.

    Also, unless your circumstances are special, you should be putting your images into app/assets/images, not public/system. rake assets:precompile pushes images into public/assets too. When doing this, you need to use image_path(...) within your ___.css.scss file(s) to allow the paths to be updated properly with the hashed filename generated for the image assets during precompile.

    Finally, it seems reading through this Rails Guide would do you a lot of good.

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

Sidebar

Related Questions

I recently deployed my first Django app to Heroku. It's for my master's project
I've recently deployed my first Rails application on a Mac mini running Lion 10.7.2
I've recently deployed some A/B testing experiments using vanity to my heroku instance. However,
My company recently deployed our first Silverlight app, and, as expected, we've had a
I have a little project with some jsp deployed on an Tomcat 5.5. Recently
Good afternoon one and all, I've recently deployed a website on a remote server,
I recently deployed my rails app on Heroku. In the process I accidentally deleted
Doing cross platform development with 64bit. Using gcc/linux and msvc9/server 2008. Just recently deployed
When executing heroku run python manage.py syncdb on a django app I recently deployed
I'm pretty new to ROR. I've recently deployed an app on heroku and have

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.