my site heroku hosts takes user inputs , update json file on remote server. should have stored in database. it's better solution. there way can download date json files on heroku remote server?
heroku doesn't offer mechanism commit files directly on server, or copy files server. 1 of main reasons its ephemeral filesystem:
each dyno gets own ephemeral filesystem, fresh copy of deployed code. during dyno’s lifetime running processes can use filesystem temporary scratchpad, no files written visible processes in other dyno , files written discarded moment dyno stopped or restarted. example, occurs time dyno replaced due application deployment , approximately once day part of normal dyno management.
if file accessible on web might able download browser, whatever file created may not there anymore. you're right database better choice.
Comments
Post a Comment