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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:44:20+00:00 2026-06-15T10:44:20+00:00

How do i get the changes from live to my repo? The files running

  • 0

How do i get the changes from live to my repo? The files running on the heroku app have changed and now if i push these will be overwritten.

I have my php code running on heroku and storing ‘database’ things in local files.

        {
        "id":1,
        "date":"12/1/2012",
        "topImg":"/img/dates/1.jpg"
        .....

So these things are stored in a json object then just saved over.

  • 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-15T10:44:20+00:00Added an answer on June 15, 2026 at 10:44 am

    Don’t do this!

    Local files are your enemy, because Heroku is a cloud application host that runs applications on multiple anonymous load-balanced nodes.

    Perhaps you’re running a single dyno right now for development purposes, but if you ever want to make your site go live you’ll need at least two dynos (because Heroku free tier service is qualitatively different from their non-free tier service, particularly in that they will spin down a free dyno if it is not being used but they will never do that to a non-free dyno). When you have multiple dynos, using local files for anything other than caching will be totally unmanageable.

    Even if you somehow stay with one dyno forever, Heroku dynos are not guaranteed to maintain their local storage — if for instance there is a hardware failure on the machine your dyno is served from, Heroku will not hesitate to spin down your application, deleting all local storage, and spin it up again with just your application code loaded, because it does not expect your application to be using local storage for anything.

    There is no one supported method for getting files off of a dyno, because, again, it’s never a good idea to store local files on a dyno. However, if you really, really need to do this, you can use heroku run and run one-off commands to, for instance, open up a shell and upload the files somewhere. Again: do not do this for anything serious, because once you have multiple dynos it’ll be nearly impossible to manage files on them.

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

Sidebar

Related Questions

I get the following error when trying to push changes to github from the
How can i get a list of all changes from TFS that were in
Can we get relationship status changes of our friends from last 3 days including
I'm trying to calculate percentage change from 2 columns. Since you will get an
Original issue Since I changed the version from 1.6.3. to 1.6.4 I get serious
I have a cloned repo I use for the live site and I have
Ok So i have a Live Stream from a URL using MPMoviePlayerController. Player =
I successfully pushed a live app to heroku on cedar stack at livebytransit.com a
I'm trying to get up and running with git. I have set up a
I want to create a live, checkers-like app, which will work like this: There

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.