News for hackers. Stuff that matters.
Re:Sandstorm – An open source operating system for personal ... by conradk on Saturday July 16, 2016 @08:28AM (#12106126)
How do app updates work with Sandstorm ? For example, if I host an instance of the Ghost blog. Now, say it updates from version 1.2 to version 2.0 (which means probably a breaking database schema change or something). How would Sandstorm go about updating it ?
Re:Sandstorm – An open source operating system for personal ... by dwrensha on Saturday July 16, 2016 @08:59AM (#12106198)
A grain's filesystem consists of read-only app data mounted at / and writable grain storage mounted at /var/. From Sandstorm's perspective, upgrading a grain to a new app version just means launching the grain with the new app version's read-only data, leaving the writable /var/ data untouched. The app is then responsible for detecting if any migrations are required and for performing them if so.

Some apps, such as WordPress, already have logic for automatically updating the database when the code changes. Other apps need to add some simple version-detection logic in their startup scripts.

Re:Sandstorm – An open source operating system for personal ... by conradk on Sunday July 17, 2016 @02:14PM (#12111081)
Thanks for the explanation !