tiddlywiki5 - Why heroku app doesn't save new file with Tiddlywiki? -



have met issue me before?
have deployed tiddlywiki5 heroku app @ https://jameswiki.herokuapp.com. displayed , worked expected @ runtime. however, after server (web dyno) sleeping , wakeup (often after 1 hour inactive), clear.
have checked console in heroku when creating new tiddle, still said new tiddle has been saved, in fact, no new tiddle saved tiddlers folder. below script install , run it:

in package.json

{     ...     "scripts": {             "start": "tiddlywiki . --server",             "postinstall": "npm install -g tiddlywiki"      }    } 

in procfile

web: tiddlywiki . --server $port $:/core/save/all text/plain text/html "" "" 0.0.0.0 

help me fix issue. thanks.

heroku's filesystem ephemeral - exists while dyno exists. when dyno restarts or ends (as when app goes sleep), new 1 have fresh, empty filesystem. if want files persist, need save them off database or amazon s3 long-term storage.

https://devcenter.heroku.com/articles/dynos#isolation-and-security

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.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -