cozy-home-v2 icon indicating copy to clipboard operation
cozy-home-v2 copied to clipboard

Always allow to update “static” applications

Open clochix opened this issue 10 years ago • 7 comments

Always enabling the “update” action on static application would allow users to update a static website without having to deal with updating the version inside package.json. It would make publishing static websites easier for users without a technical background.

Ping @lemelon

clochix avatar Jan 28 '16 09:01 clochix

hum... maybe, we can propose same system than system used for application with server :

  • If application is on master, update is available only if application has a new version.
  • If application is on a branch different than master, update is always available.

What do think about that @clochix , @lemelon ?

poupotte avatar Jan 28 '16 09:01 poupotte

We should find a system for really non tech savvy people, so I'm not a big fan of using branches.

clochix avatar Jan 28 '16 09:01 clochix

Yes branch is a complex concept. We should not rely on it.

frankrousseau avatar Jan 28 '16 14:01 frankrousseau

IMHO, if the user know how to use git, it wont be an issue. If he doesn't, he wont care if he has to copy/paste one more cabalistic formula in the mess below : git init && git remote add xxxx && git add -A . && git push -u origin master

Joke aside, git is hard, and we could maybe spend our energy better by figuring a safe way to allow to use a cozy-files/folder as a website.

aenario avatar Jan 28 '16 14:01 aenario

Another way to go would be to make the version field optional, and display an update button when the field is missing. Maybe the real issue is that we don't have an update button, but a “an update is available” label, which isn't the same.

clochix avatar Jan 28 '16 16:01 clochix

Another idea:

  • Always have an update button for apps installed via git
  • And install apps from market via npm.

It is a more complex way, but it'd have some benefits on the long term:

  • no more build issue on github (the build is done only publishing to npm), thus no need for the development branch and a simpler workflow for contributions
  • npm has a notion of prerelease, which can be helpful to have stable and unstable channels
  • fast apps installation for cozys farm with a npm cache.

nono avatar Feb 05 '16 09:02 nono

@nono installing apps from npm is out of scope here, you should probably open another ticket.

clochix avatar Feb 05 '16 14:02 clochix