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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:28:36+00:00 2026-06-07T08:28:36+00:00

I recently deployed my first Django app to Heroku. It’s for my master’s project

  • 0

I recently deployed my first Django app to Heroku. It’s for my master’s project so scalability isn’t a huge issue. I’ve read about problems that can occur from serving static and media files directly from Heroku and that Amazon S3 is the best solution. Thus far, the static files – CSS, JS – are being served properly from Heroku.

The media files are a bit of an issue, though.

The only media that can be uploaded by a user are photos. Again, as this is a small project, the volume will be low. Currently, those photos are being served properly. But when updates are pushed to Heroku, the links to the existing uploaded photos break on the page and have to be reuploaded to appear again, which is obviously unacceptable.

I’m trying to discern whether this is an issue with serving media that could be solved by an outside host such as Amazon S3 or something else that is occurring. I’m not eager to pay for hosting but if it will solve this issue, than it will likely be the solution chosen.

Any insight or experience welcomed.

  • 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-07T08:28:38+00:00Added an answer on June 7, 2026 at 8:28 am

    This is the expected behavior, because writes to the filesystem of a Heroku web dyno are not added to source control and will not be considered “part of your app”. Basically, you should not allow any writes to the filesystem at all except for temporary files.

    This isn’t only a problem where pushing updates to your application cause the files to disappear; additionally, if you have multiple web dynos (the most typical use case in a Heroku app) your files will only appear for users that happen to hit the web dyno they were uploaded to.

    The solution is to either have your users upload directly to another server or to S3 and pass the link to your application, or else to have your own server automatically send uploaded files to another destination such as S3 itself. In truth, static assets like CSS are better served from S3 as well, but this is sometimes practical and sometimes not.

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

Sidebar

Related Questions

My company recently deployed our first Silverlight app, and, as expected, we've had a
I recently deployed my rails app on Heroku. In the process I accidentally deleted
I'm pretty new to ROR. I've recently deployed an app on heroku and have
Have a working rails app on development but issue deployed. Was recently working but
I have recently deployed an app to a shared host (webfaction), and for no
I have a Ruby on Rails app that I've recently deployed to a remote
I'm having a strange issue with Azure! I just recently upgraded my azure deployed
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,
I recently deployed an Azure app to the staging environment which is supposed to

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.