Updating A Html File
Solution 1:
Heroku's filesystem is ephemeral:
Each dyno gets its own ephemeral filesystem, with a fresh copy of the most recently deployed code. During the dyno’s lifetime its running processes can use the filesystem as a temporary scratchpad, but no files that are written are visible to processes in any other dyno and any files written will be discarded the moment the dyno is stopped or restarted. For example, this occurs any time a dyno is replaced due to application deployment and approximately once a day as part of normal dyno management.
You can write to it but any changes will be lost when your dyno restarts, which happens frequently.
Depending on your use case you should be using a data store (Heroku provides a PostgreSQL database by default, but there are other options) or a third-party file storage service like Amazon S3.
Post a Comment for "Updating A Html File"